Fixing Entity Manager dependency

* Removing assumption that Doctrine entity manager will be on $app->em as a service. Instead providing the bootstrap with a way to create the entity manager if needed.