Internal LinkedIn's improvements to header_rewrite module

* Crash fixes;
* Variable expansion for add-header;
* `counter` operation that increments counter on rule triggering;
* `COOKIE` based conditions.
* Whitespace, trailing spaces and style cleanup;
* Documentation improvements.