History/HDA API: normalize exceptions and exception codes; Fix ability to history/view a history shared with another user