Initial support for routes and html5 mode