Updating require config and app, and moving events bus logic.