server: implementing conditional legend requests for GIS.lab Web