adding support for wms layers and queries
adding support for legends from wms layers