moved from https://github.com/don/cordova-filetransfer