tools: a reporting utility
Finally, something to collect _everything_ relevant to heartbeat.
Turned out to be much larger and more complicated than I expected.
Some parts are rather messy.
Mercurial revision: 443a00e09d0ed1e464e547fadbef90ccf8d8678a