Phonegap: implemented support for injecting cordova.js script while generating page to enable cordova plugins. Turned on by config param common.injectCordova.