added LayerGroup encoder for GeoServer 2.2 and GeoServer 2.3