Make tagging work (as well as it ever did) again.

The revinfo file format has changed.
cleanups, remove memory leaks
more info when reference file reading fails
another leak
delete merges no longer an option
memory dump
simplify code
cleanup
experiment with alternative data structure for dictionary