Switch to pushState and set up for server-side render.