Some route encodings

Introduces some of the route encodings in the routes data module, with
more to come.