Refined cancelling tasks system
Tasks can be cancelled by group id. Fixes #7