RequireJS config and architecture modular refactor.