Rewiring controllers for Angular.js to look better and get them ready for requirejs.