Cordova envelope with online/offline check at startup

Cordova integration including online/offline check and a proper message.