split task module into several submodules

Fixes #15, except that it changes the namespace (currently worked
around in the webserver).