Add client-side routing with history support.