WMTS Legend

This PR adds support for WMTS legends. 
Please review.