Added Phonegap events

onDeviceReady, onPause, onResume, onOnline, onOffline, onBackButton