Greatly simplified task group handling.

Removed instances and and renamed container concept to groups.