(PE-5860) Add regex support to wrap-proxy

This PR adds regular expression support to the wrap-proxy function.
Ring always passes the request as an argument to a ring handler whether or not it's used, so `req` needs to be a parameter or the server will return a 500 response.