Initial work on nested resources/collections.

Currently only handles the ``1-M`` (a resource with a nested collection) case. Needs unit tests but makes S3 resource integration tests pass.
Fixed an import error.
Added tests for the existing relation work.
Initial work on iteration in collections.
Merge branch 'nested-collections' into develop
Merge branch 'collection-iter' into develop