Refactored so that RequestHandler and ResponseHandler instances are created in ClientHandler class.