save the hash (bug 44139)

In stable clicking on a section doesn't update the hash
moving logic from toggle.js into history.js

Change-Id: Ie31b6736ab26e82000bed19c0b5da9ad46a4a2d3
Merge "save the hash (bug 44139)"