title: Hapi.js Proxy - change the response before reply
body: <p>I'm trying to test Hapi.js for a new project I'm working on
  My goal is to trigger a request on my Hapi server and this request will trigger another request on a remote server using Hapi proxy, and the response will be only specific properties from the remote response</p>
  
  <p>To test this a request to /api/type3/name must be made which will invoke an API call to GitHub's API to get the user object</p>
  
  <p>Code:</p>
  
  <pre><code>server.route({
      method: 'GET',
      path: '/api/type3/{name}',
      handler: {
        proxy: {
          mapUri: function(request,callback){
              callback(null,'https://api.github.com/users/'+request.params.name);
          },
          onResponse: function(err, res, request, reply, settings, ttl){
             console.log(res); 
             reply(res);
          },
          passThrough: true,
          xforward: true
        }
      }
  });
  </code></pre>
  
  <p>The response from the above code is the response object from GitHub
  Now I need to save this response so I can manipulate it and return only what I need</p>
  
  <p>But when I debug the response object it contains a lot of data and I can't find the response payload inside of it</p>
  
  <p>So how to extract only the response from GitHub from the response object ?</p>
  
  <p>Thanks a lot</p>