Some more Varnish cookie logic for messages cookie.