Setup PIC and handle IRQs