Add `#autoId()` which enables a model to have an auto-generated id property

The current id is stored in the factories container object.