Allow filtering response before returning

This will allow plugins to modify the response based on the request.
Ensure `$result` is always a response object
Merge pull request #573 from WP-API/filter-response

Allow filtering response before returning