Continue work on multitasking.

Well, actual context / task switching works now! Only thing is that
the terminal_* functions (and thus, kprintf) is not safe to use in
processes. Also, the event infrastructure is probably horribly broken.