fix #1123 rename History `onpopstate` event to `popstate`

This change has been done to be more compliant with the standard HTML5 spec.
Both events are still present, and both of them are fired when needed.

DEPRECATES: the `onpopstate` event in History class.

Use `popstate` event instead.

Close #1224.