Added exceptions status register to a thread's context structure
Use the interrupt level in patmos enable and disable interrupts routines
Implemented ISR management routines