Fixed persistent cache for WMS services.

- Persistent cache requires url query parameters to be in the same
order every time to generate the same md5 hex value (hence QMap instead
of QHash usage for query parameters).
- Also ensured correct path separators are used for each OS platform.