Move EntityManager and supporting classes.

Move entity-focused classes to a new supporting namespace.