GEOS-4843: original patch to fix transparency in animaged gif + tests

this is actually the patch from Simone Giannecchini, with one little
fix in RenderedImageMapResponse to make it work (again).
see: https://jira.codehaus.org/browse/GEOS-4834