Combine TCP queued items into one transmission.

This improves the TCP throughput, as multiple messages can be sent at
once.
Fixed right Ctrl not closing programs.
Telnet is working!

Server correctly redirects terminal output to client.
Server starts a new shell for the client, while still processing events.
Client now exits from session using exit command instead of Ctrl,
allowing use of Ctrl in remote server programs.