improve combining of multiple cascaded sources

pass supported_srs and supported_format to combined layer so that the
next layer with same parameters can be combined.
ignore different res_ranges, layers should already be filtered.
use extent from layer metadata in WMTS capabilities (fixes #115)