allow the wifi state to be controlled by multiple wired interfaces
Move some variables around
Move config file parsing into a separate function.
Reorder includes.
Add some more boilerplate daemon stuff
Use events to check interface status.