[WIP] Code refactoring (Introduce new RoutesHelper)

also needs a better name. How about `prependRootIfNecessary`?

```coffeescript
prependRootIfNecessary(pattern)
```