forked from github/cordova-android

Added support for an optional options object as the final arg. Currently only handles the options.headers object (as per the issue). `FileTransfer.download(source, target, successCallback, errorCallback, trustAllHosts, options)` This is needed for using FileTransfer.download with Basic Authentication, etc. Sadly since Android 2.x doesn't support XHR2, this is needed in FileTransfer. I have only added support to Android and iOS (see other PR's).