Rework on the interrupt system.

NOT TESTED
clean up
Fixing bugs in setting button modes and button edges

Fine tuning interrupt
A lot of testing with the SPI.

SPI only works in 1 specific mode correctly when combined with the interrupt.
Otherwise it only would interrupt once.
* Tested with the STM-chip. Looks promising.

* Cleaning up debug code