Pulled out handleClient and setupInputOutput to a ClientHandler class.