Process task register/unregister trigger.
Small code & test review (mostly missing headers and coverage of the
tests). See suggestions in the code (marked by FIXME and TODO).
Merge pull request #77 from d3scomp/newgen-bures

Small code & test review