Fixes to cordova. Removed stale versions of cordova, and improved loading behavior.