Fix for multiple history entries bug

Needed to implement 'hash' method on site/title objects to let them
be used correctly as dictionary keys, otherwise when getting objects
of different provenance we sometimes failed to account for matching
entries.

Change-Id: I5192f83530ac3ef3b2fa240ee38ef2ced78a3745