Add modules service. Move logic from controller. Add global config to make possible rename route