Unit tests.
Merge remote-tracking branch 'extendedmind/master'
Merge remote-tracking branch 'extendedmind/master'
Added error handling service and directive. Added url list directive. Removed global variables. Renamed ulrs requiring authentication with 'my' prefix and added authentication check into these routes' resolve function.  Refactored and validated frontend with JSLint.