Properly handle individual resource object

According to the JSON API specification at
http://jsonapi.org/format/#document-structure-individual-resource-representations,
representations of an individual resource are Objects
that are not necessarily wrapped in an Array.
Merge pull request #22 from meismann/master

Properly handle individual resource object