TS-2316: header_rewrite: added cookie-based conditions

Submitted by: Alexey Ivanov <aivanov@linkedin.com>
Sponsored by: LinkedIn