Proxy: changed interface of some internal functions.
Proxy: changed interface of some internal functions.

This is in preparation for the next change.

Also, moved optimization from ngx_http_proxy_rewrite_regex_handler()
to ngx_http_proxy_rewrite().

hy0kl/nginx,hy0kl/nginx,hy0kl/nginx