Refactored the test structure. Started testing with mocks now, to make sure they are "unit tests" and not functional integration tests.

Rewrite of the TCP receiver. Now cut the time in half, and removed most bugs. Test coverage much improved.