Making dispatch nicer; adding tests.

This means that something else munges request.{pre,post}path so we don't have
to! The result is that dispatching to other resources is easier.