Split up serial and packet finding code.

I did this kind of quickly, so there might be
unnecessary includes and such. It all compiles,
though.

I also disabled the testing stiff since it wasn't even
being used and I didn't feel like unbreaking it.
5 files changed