sys: add multitasking

WIP, rebased on #1276.

Uses a vtimer to yield the current thread periodically.
Oops, I forgot to git add the actual module. :-/