Fix for HistoryHash, and testcase updates to work with FF.
Merge pull request #143 from edchat/master

Fix for HistoryHash, and testcase updates to work with FF