Optimize generating the gitolite configuration for group change
This allows updating just the section about groups or even a single group
without re-generating the entire gitolite configuration file.
Fixes https://pagure.io/pagure/issue/2399
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>