Add support for rewrite directives

Rewrites must be added to a vhost, and can optionally be placed within a
location.  They can also be wrapped in conditions.