Add entity manager. Add base entities.