Add DeclarativeGroupManager::ensureGroupExists method

This can be used to find the ID of the group matching a
localUid+remoteUids and create one if not already present.