Overhauling the History Module

- [x] Move unrelated code out of the private functor class `HistoryBuilder`
- [x] Implement turning display of inline refs on/off.
- [x] Allow the user to say what he wants to see...