Move unused methods into the private block
Move rest_logger from client.rb to connection.rb
Refactor response_mapping into a separate class