Refactored Repository Pattern and UnitOfWork implementation. Added EntityBase, IObjectState, and ObjectState classes.