Flesh out the request object
Correct coding standards for require
Use the request object as parameter
Add json_ensure_request
Build the request object earlier

This builds it before dispatching instead.
Pass the request object to dispatch

Boom, simplifcation.
Merge branch 'joes-registration' into two-request-object
Switch to single argument for controller arguments
Update json_pre_dispatch to also send request object
Include params parsed from the route

Also changes get_param to use POST (if relevant), then GET, then the URL
parameters. This mirrors the previous behaviour from v1.
Add description of attributes array
Fix typo in description
Merge pull request #563 from WP-API/two-request-object

Add request object