SharePoint REST API wrapper for AngularJS