GTNPORTAL-3361 - Added Cache-Control configuration option

Each portal now can set its own Cache-Control policy, the default being the value which is currently being used, for backwards compatibility.
GTNPORTAL-3361 Moved the setting of the cache-control header to before the processRequest
GTNPORTAL-3361 - Added URLEncoding to avoid possible attacks on the header