dyngroup: Add a method to dissociate a machine from all groups (static and imaging)
Refs #2279
base: Remove all machine group links when it is deleted