Hashes for bookmarking

Support hash positions in stacks using location.hash and
location.replace. Fixes #6