added managing of WMS legends (getLegendGraphic) in the addLegend. Also added parameters to interactively modify wms legends scale