Threaded version of the echo server.