General code fixes and new Auto Brightness switch

I improved some code, mostly changed the way callbacks are handled for switches (no longer hooks methods, they mostly now listen for notifications).

Also, I added an Auto Brightness toggle that doesn't have an icon yet and depends on backboardd. 

There are also a few minor things, but you can check the diff for that.

Thanks