Rafactored to use the project structure more like the AngularJS Clean code
video on PluralSight
Moved some of the third party stuff around
Refactored common functionality into a factory.
Merge branch 'refactorCodeStyle'