[WIP] Adds typesafe routing

Fixes #14.