Changed file structure and and moved everything into the module. This stops polluting the angular namespace.