WIP json api tests

Posting this PR to get feedback. Is the dsl proposed viable, or am missing something crucial? Also not sure what the object returned by #from_json should look like (i've only been using roar on the representation side of things, no consumption).