Add a unique, runtime-constant identifier to groups
Previously, the name of the config group (of groups stored in the
application config file) was used as id. This is now stored separately.
Store groups in a vector in KeyCache (where the index corresponds to the
unique group identifier).