xmega: Improved Reset handling, added WDT