Refactor everything into functions.
Refactor plain text output.
Refactor HTML generation.
Add another look at age.

This finds the oldest rev that did not receive a -1 or -2.  So, this is
the amount of time someone has been waiting and just rebasing a patch to
keep it out of conflict.