Ability to use variables in replacement strings for rewrite middleware.

My concern is that by rolling a new parser language, we would need to consider escaping, compiling. I would give text/template a try and benchmark it to see how it works.