CHRON-56 Refactor TCP layer, minor cleanup
Merge pull request #108 from lburgazzoli/master

CHRON-56 Refactor TCP layer, minor cleanup