Update for Cordova 3.0 and automatic plugin installation