Reorganized the AngularJS controllers into modules.

Also implemented navigation bar contextual highlighting.