Added image caching functionality. Hardened cache name generation. Implemented directory wide jpeg quality overrides with new function getFinalJpegQuality. Moved the cache on/off check inside validateRequest.