server/client connection code

plugging away and getting server/client connections going
the lack of mutexes on streams is getting annoying with split messages
and all.  fix is a big and complicated logging suite so not for now.