Move client response code into its own class. Move connection request logic into its own class.