Wrapper around $http with integration for UI-Router