Working version of TCP connection

Somewhat works now with riki version 0.1.1