Client connection handling, basic server message loop.