Added support for two new variables in url rewrite rules

* ^{Host}^ is replaced with the current connection's hostname
  (http_host())
* ^{FullHost}^ is replaced with the full host including protocol,
  ie. something like http://host.com
FIxed check if pred is actually a column
Fixed missing check for http ctx
Fixed memleak when out of stack