Rework the setup sequence to not rely on timers anymore but instead always react to wifi state changes only. Fixes #29