Made multitasker class more versatile, not restricting to runnables

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>
Merge pull request #490 from bergerkiller/master

Made task handling part of the multitasker class itself