Autosave associations ported from Rails

When you save a record, it's newly created associated objects are also
saved.