[TS-2609] Header rewrite plugin TOHOST condition

Enhance header rewrite plugin to support TOHOST condition. Header rewrites conditioned on the final origin server will be supported.