Clean up wifi.cpp/.h. Also replace some constants in the switch in write16 and read16 with their defined register name.