Support unmarshalling resources

myType := &MyType{}
resource := hypermedia.Resource{hypermedia.Entity{myType}}

json.Unmarshal(body, &resource)

// myType is populated