BRANCH 4.1: put in some error checking for pushState.
Merge branch '4.1' of https://github.com/Southpaw-TACTIC/TACTIC into 4.1