Initial go at a default tcp client/server
Better tests and misc fixes