Made sure entity timestamps are updated

Made sure that entity timestamps are updated when an entity changes.
Currently any attributes will also have their timestamp updated.