Configurable AngularJS promise based interceptor for delegating auth