Get rid of a few warnings
Major overhaul.
Use Android AsyncTask instead of Java threads.
Buttons and menu item depending on a successful connection are disabled
when not connected.
Custom, shutdown and reboot commands still need to get their own
background task.