Added a category for NSManagedObjectModel that generates a hash from the entity hashes. Added unit tests.