Fixes #1 - Switch preserves state properly

the bug was mainly in the WifiStateReceiver, that didn’t check whether
the TrackerService was running before setting the checked status of the
onOffSwitch