Added some basic interrupt handling code.

Note: You still can't return from an interrupt.