Autosave associations ported from Rails

When you save a record, it's newly created associated objects are also
saved.
Merge pull request #217 from projecthydra/autosave

Autosave associations ported from Rails