AJAX works with browser back button + other stuff

- AJAX works with browser back button using the HTML5 history.pushState,
history.replaceState methods and the popstate event
- Can now directly link to archive page and individual blog posts
- Restructured main javascript file