Grouping tasks phase 2: collapsing

Grouping #59. Now collapsing/extending tasks is ready for testing!