Added NMI handling code to startup

When the watchdog times out in sleep or idle mode the reset handler is called with the NMI flag set in C0's status register.  This code will immediately resume with the next instruction when that happens instead of reinitializing the whole system and loading the bootloader.