Threaded socket-based chat client and server.