Wraps the Cordova File API in convenient functions (that return a Promise)