UTFGridWMS support (based on pullrequest #1076)

I started from the first UTFGridWMS pullrequest from fdesj and addressed marcjansen comment. There should be no more code duplication and I created the tests case for it.