Set parents during the cache process
Merge pull request #1 from jclem/master

Update
Merge branch 'master' of https://github.com/raulb/rest-model
Set parents for non-cached models
Forgot to push the build
Add specs, clean up code for cached record parents

Previously, we assumed that an array of cached records always existed
when setting parent properties on new objects (hence the usage of
`firstObject.parents`).

This isn't the case—the `::all` method now
ensures that the `parents` argument is passed all the way down to
`toResult`, ensuring that all cached and uncached records fetched by
`::all` will have the proper parent properties set.
Merge pull request #10 from raulb/set-parents-while-caching

Set parents during the cache process