use list in 1.1.1 capabilities so that both 1.3.0 and 1.1.1 list same layergroups

A fix for https://jira.codehaus.org/browse/GEOS-5822
When removing prefix, first check that the layer starts with the prefix before removing it