Support cordova.plugins with new Plugins interface