Proper Threading/Multitasking Support (WIP)

Bug with swapping tasks, probably identical to the one from the kthread
system..