Add support for hash for token transformer.

It’s useful if your app is mixing pushState with hash. Route does not
support defining hash as optional, but we can define two routes for one
page, which is ok.