GEOS-6245: implemented dynamic width and height calculation for Style LegendURL GetCapabilities

This is implemented using a disk based png legend sample cache.
A listener attached to the Catalog allows size recalculation on style updates.