Deep sleep disable brownout detector and ADC clock
Slight refactoring of sleep functions
Rewrote watchdog setup function as inline asm
Fixed "volatileness" of some vars