Controllers refactored to app.js and services.js.