Polyfill history.state for non-supporting browsers
simplify history.state support check
Merge pull request #2887 from gdub22/history-state-polyfill

Polyfill history.state for non-supporting browsers