Create function for getting configured groups
Created by: frankduncan
This is useful for outside code that may want to know what configured groups are available from torque. This way toplevel configuration (e.g., in LocalSettings.php) can do intelligent things based on what groups are available.