CB-9051 Plugins don't get re-added if platforms folder deleted.
CB-9051 Plugins don't get re-added if platforms folder deleted.

To avoid attempting to add a plugin twice while adding a platform (a scenario that can occur now with automatic restore of plugins and platforms), when adding plugins to a newly added platform we check to see if the plugin has already been added by calling plugman's PlatformJson.isPluginInstalled(), which looks in plugins/<platform>.json to see if the plugin has been installed for a platform.

If you delete a platform's folder, it's plugins/<platform>.json file still exists, so if you add the platform again, we think all plugins are already installed for it and so don't try to install them.

Simple fix is to delete the platform's plugins/<platform>.json file before adding a platform, so we start with a clean slate.

theaccordance/cordova-lib,meteor/cordova-lib,cordova-ubuntu/cordova-lib,infil00p/cordova-lib,tony--/cordova-lib,stevengill/cordova-lib,surajpindoria/cordova-lib,carynbear/cordova-lib,dpogue/cordova-lib,ogoguel/cordova-lib,ktop/cordova-lib,AxelNennker/cordova-lib,Icenium/cordova-lib,alsorokin/cordova-lib,AxelNennker/cordova-lib,alsorokin/cordova-lib,revolunet/cordova-lib,shazron/cordova-lib,tripodsan/cordova-lib,driftyco/cordova-lib,ogoguel/cordova-lib,timwindsor/cordova-lib,AxelNennker/cordova-lib,vladimir-kotikov/cordova-lib,dpogue/cordova-lib,filmaj/cordova-lib,meteor/cordova-lib,meteor/cordova-lib,carynbear/cordova-lib,ktop/cordova-lib,vladimir-kotikov/cordova-lib,infil00p/cordova-lib,tony--/cordova-lib,revolunet/cordova-lib,cordova-ubuntu/cordova-lib,vladimir-kotikov/cordova-lib,tony--/cordova-lib,ogoguel/cordova-lib,cordova-ubuntu/cordova-lib,carynbear/cordova-lib,corimf/cordova-lib,gorkem/cordova-lib,tony--/cordova-lib,cordova-ubuntu/cordova-lib,ogoguel/cordova-lib,matrosov-nikita/cordova-lib,driftyco/cordova-lib,driftyco/cordova-lib,alsorokin/cordova-lib,jasongin/cordova-lib,driftyco/cordova-lib,cordova-ubuntu/cordova-lib,tony--/cordova-lib,jasongin/cordova-lib,cordova-ubuntu/cordova-lib,tripodsan/cordova-lib,AxelNennker/cordova-lib,apache/cordova-lib,csantanapr/cordova-lib,infil00p/cordova-lib,tripodsan/cordova-lib,jasongin/cordova-lib,vladimir-kotikov/cordova-lib,theaccordance/cordova-lib,theaccordance/cordova-lib,gorkem/cordova-lib,timwindsor/cordova-lib,filmaj/cordova-lib,gorkem/cordova-lib,ktop/cordova-lib,purplecabbage/cordova-lib,phonegap-build/cordova-lib,purplecabbage/cordova-lib,corimf/cordova-lib,marcuspridham/cordova-lib,phonegap-build/cordova-lib,tripodsan/cordova-lib,theaccordance/cordova-lib,timwindsor/cordova-lib,meteor/cordova-lib,driftyco/cordova-lib,phonegap-build/cordova-lib,csantanapr/cordova-lib,ogoguel/cordova-lib,revolunet/cordova-lib,dpogue/cordova-lib,apache/cordova-lib,infil00p/cordova-lib,shazron/cordova-lib,tripodsan/cordova-lib,alsorokin/cordova-lib,filmaj/cordova-lib,marcuspridham/cordova-lib,marcuspridham/cordova-lib,tony--/cordova-lib,alsorokin/cordova-lib,ktop/cordova-lib,AxelNennker/cordova-lib,ktop/cordova-lib,AxelNennker/cordova-lib,phonegap-build/cordova-lib,purplecabbage/cordova-lib,timwindsor/cordova-lib,Icenium/cordova-lib,AxelNennker/cordova-lib,timwindsor/cordova-lib,theaccordance/cordova-lib,shazron/cordova-lib,ktop/cordova-lib,infil00p/cordova-lib,csantanapr/cordova-lib,dpogue/cordova-lib,carynbear/cordova-lib,revolunet/cordova-lib,meteor/cordova-lib,filmaj/cordova-lib,stevengill/cordova-lib,theaccordance/cordova-lib,timwindsor/cordova-lib,filmaj/cordova-lib,tripodsan/cordova-lib,csantanapr/cordova-lib,surajpindoria/cordova-lib,carynbear/cordova-lib,purplecabbage/cordova-lib,csantanapr/cordova-lib,surajpindoria/cordova-lib,jasongin/cordova-lib,shazron/cordova-lib,dpogue/cordova-lib,tripodsan/cordova-lib,jasongin/cordova-lib,matrosov-nikita/cordova-lib,jasongin/cordova-lib,ogoguel/cordova-lib,marcuspridham/cordova-lib,filmaj/cordova-lib,gorkem/cordova-lib,apache/cordova-lib,csantanapr/cordova-lib,corimf/cordova-lib,alsorokin/cordova-lib,meteor/cordova-lib,timwindsor/cordova-lib,Icenium/cordova-lib,Icenium/cordova-lib,matrosov-nikita/cordova-lib,stevengill/cordova-lib,corimf/cordova-lib,matrosov-nikita/cordova-lib,apache/cordova-lib,phonegap-build/cordova-lib,driftyco/cordova-lib,gorkem/cordova-lib,infil00p/cordova-lib,gorkem/cordova-lib,Icenium/cordova-lib,ogoguel/cordova-lib,corimf/cordova-lib,meteor/cordova-lib,marcuspridham/cordova-lib,Icenium/cordova-lib,cordova-ubuntu/cordova-lib,stevengill/cordova-lib,Icenium/cordova-lib,dpogue/cordova-lib,vladimir-kotikov/cordova-lib,shazron/cordova-lib,stevengill/cordova-lib,marcuspridham/cordova-lib,revolunet/cordova-lib,carynbear/cordova-lib,theaccordance/cordova-lib,purplecabbage/cordova-lib,carynbear/cordova-lib,surajpindoria/cordova-lib,tony--/cordova-lib,jasongin/cordova-lib,infil00p/cordova-lib,vladimir-kotikov/cordova-lib,alsorokin/cordova-lib,surajpindoria/cordova-lib,purplecabbage/cordova-lib,corimf/cordova-lib,gorkem/cordova-lib,surajpindoria/cordova-lib,csantanapr/cordova-lib,marcuspridham/cordova-lib,revolunet/cordova-lib,surajpindoria/cordova-lib,matrosov-nikita/cordova-lib,revolunet/cordova-lib,apache/cordova-lib,driftyco/cordova-lib,corimf/cordova-lib,matrosov-nikita/cordova-lib,phonegap-build/cordova-lib,shazron/cordova-lib,vladimir-kotikov/cordova-lib,stevengill/cordova-lib