Added support to watchdog as requested by issue #2.

Added support to watchdog as requested by issue #2, if something goes
wrong and it avoids the wdt_reset the watchdog will reset the mcu.