Add classmethods on EntityStore to dynamically set register
mappings (also some code in metaclass to copy mapping dicts when
subclassing)
Import fix