[all] CB-2166 Allow deviceready handlers to be registered before cordova.js is loaded.