add get all groups

Yes we need to manage the configs better, I just implemented it like this because that's what was being used previously (for the Riak config).