cosmetic stuff + add LoadHistory/Reset/SetWriter (not used by the main path)

(could imagine Reset becoming CutHistory(bytes int) for finer control if you know how long the useful history is (e.g., n wiki revisions back or something))