Cordova File API with some jQuery Deferred special sauce.