Backport of the fixes for JIRA [GEOS-6376]  on 11.x branch

Please look at the following JIRA: https://jira.codehaus.org/browse/GEOS-6376.

This pull request moves WMS quantizer classes from GeoServer to GeoTools and changes the ImageIO-Ext version from 1.1.8 to 1.1.9.