Refactor routing into router module.

Instead of using backbone history we provide router module which wraps it.