Added routing and pushState support. Page title now also updates.