Refactor controllers.
Refactor other javascript files.
Merge branch 'jshint-the-app'