Changed JSON formatting a bit for easier parsing in frontend (always returns arrays for groups/layers)
WMSCapabilities structure updated for admin-layerselector needs