Clean client-side routing

Finding a nice way of doing single-page app routing without a library.