Fix composer autoload config.
Move EntityManager configuration to module config.