Fixed (hopefully) an IE issue with loading documents, and suppress initial pop state event in some webkits.
Fixed history management in ie8
Tweaked some comments.