Adds config to separate module and checks valid scope in app.js