[WIP] Better ID Generation

- Removed scheduled extra updates.
- Move ID generation to UnitOfWork::persistNew()
- throw exception when DocumentManager::createDBRef() is called on an object without an identifier.