deduplicated Task code, reimplemented its unittests
unified Task interface, Thread callbacks are now exception safe
updated documentation
release 2.4.1: unified Task interface, improved unittests, exceptions in thread callbacks are handled properly