Moved global controllers to module

The current developers guide advises against using global scope functions as controllers, because of this I have moved it to a module. I feel this also ties in better with how filters, directives and services are defined.


The following reference is seen on this url http://docs.angularjs.org/guide/dev_guide.mvc.understanding_controller

**NOTE**: Many of the examples in the documentation show the creation of functions in the global scope. This is only for demonstration purposes - in a real application you should use the .controller method of your Angular module for your application as follows: