Dynamic cdn

adds dynamic cdn so layergroups are fetch though the CDN instead of doing a direct query