Rework config and get Wifi working

Wifi still needs to be tested with real sensors to make sure it doesn't overflow, but it works ok with button presses.