Added initial work on TCP networking. Sorry, I messed up the git history...