add regular expression matching to --output-http-rewrite-url

I extended --output-http-rewrite-url to also accept regular expressions for matching.
Pls also add tests that explicitly checks if rewrites.Rewrite(url) == /v2/user/joe/ping