Add types for Route and Router.
Rework Route to use an action string instead of an array of route parts.