Add support for custom legends stored in layer records styles without ac...

...tually using WMS STYLES