Avoid adding a gratuitous '#' to the end of URLs which do not actually refer to subsections.
Also seems to avoid an extra history entry item which makes the Back/Forward buttons seem to not work right.
Update scroll positions when moving around in history.
Merge pull request #13 from jglick/history-tweaks

History tweaks