ts refactor #0

With a focus on the "client" TCP and SOCKs implementation and a tcp echo server.
End-to-End works.