Move noteService into its own file, make project more maintainable

Following cues from @johnpapa's AngularJS style guide https://github.com/johnpapa/angularjs-styleguide