Fixes offline global status even if connected. Restores previous protocol status on reconnect. Refactor ActionBar code into fragment.