Overhauling the History Module

- [x] Move unrelated code out of the private functor class `HistoryBuilder`
- [x] Implement turning display of inline refs on/off.

tbd...