WIP: first working version of data exchange over TCP

Signed-off-by: Jiri Hnidek <jiri.hnidek@tul.cz>