initial networking support

add TCP network and unit tests