WIP: a rst output framework and example script

I was playing with getting the current code to output nicely formatted
bibliographies in restructured text.  I need to do this from time to
time when pasting references into docstrings.

I sketched out a simple rst formatter and made very crude script to show
how it would work.  I'm hoping it will help people see the potential of
the code and come help work on it.