Add rudimentary support for redirects

For now, we short-circuit out of the url rewriting loop if we find a
match and a redirect was requested.