Start router in main and call history.loadUrl in submenus.

Router should be started once all submenus with routers
are loaded. Because we can't determine when it is, we start
it righ away and let the submenus call loadUrl to trigger
its route.