Prevent ciruclar dependencies in sub groups by eliminating ancestors from list of potential sub groups.
Fix for bug 2991089
Added checks for no rules and no groups when creating Group Add/Edit dialog.
Authored by: jimwinston 2010-04-28
Parent: [r771]
Child: [r773]