Response interceptor for elegant bearer-token handling for angular's $http service