Object Registration in Domain Model

Added object registration to the domain model class methods. I just put
markDirty in anything that changed something.