legend support

You can now add an legend to a layer with the option legend: {url:
'url'} it will show in the legend panel when the user clicks on the
layer-name in the layer tree