Changes to networkmgr and otamanager to prevent call to checkUpdate if wifi not available

Prevents OTA Server not available message overwriting prompt to turn on wifi
All `os.execute` won't work on Android. We need to reimplement this using LuaSocket.