Fixed cordova to stop unnecessary loading of cordova_plugins.js. Various additional fixes.