Refactoring
Add authentication interceptor for AngularJS