An AngularJS wrapper for APIBase.js