make the layer filtering in wms getcapabilty configurable, fix #946