First (not yet finished) implementation of a TCP connection manager.