Adds URL Rewriting to rack middleware.