Initial support for TCP server: accept connections, read/write data. Disconnect does not work yet.