TS-2834 header_rewrite: internal transaction and client IP conditions
TS-2834 Refactor the getIP() code, and rename the condition to
CLIENT-IP. Also added a little bit of docs.

Long term, we should figure out how to unify conditions and
the expander in a way that it integrates with the internal
log token expansions.

This closes #91