I'm proposing some improvements for the Layer Group option.
Please evaluate tha patch if you are interested in.
The improvements are:
1. The possibility to add/remove any number of layer groups
2. The possibility to add/generate automatically an Envelope and the CRS
3. The WMS GetCapabilities can show even the Layer Groups