Add simple URL rewriting feature.

A lightweight and useful (at least, I find it useful) pre-routing URL rewriting phase.