Allow the various payload expiries to be overridden by config.
Merge pull request #2239 from vanilla/feature/cookie-expiry-config

Allow the various cookie expiries to be overridden by config.