Offline mode for REST/AJAX requests in Angular.