NetworkTest class

Quite extensive for debugging purposes. Needs threads and listening and
stuff.