Improve and clean up net code. There is only one thread listening on the out-channel now and dispatching to the respective client sockets.