entity object manager implementation
more entity manager stuff, almost done with base implementation