first batch of patches

This seems to work - at least firing up the deviceready but the
navigator is empty with Cordova specifics functions