Parse JSON data from the request

Fixes #587.
Should we be checking attributes directly here, or use a different way of parsing it in? It's kind of exposing the registration structure deep into the Request, but I'm personally fine with that.