Use custom made localstorage history instead of the browser window/iframe history.

The later being very untrustable accross browsers / devices.