Added list_groups method

Support for listnodegroups.