Implement navigator history manager

* Add conf.popup.change_location
* Mark link as visited by popup using history.pushState
* Close or open popup by browser's back or forward button
* Do not "push" more than 1 state