GBE-492: put buildRasterCapabilitesInfoFromWms in separate interface for...

... testability. Use Geomajas conversion of extends of layer in stead of geotools.

BUGFIX for max extned of WMS layers.