Non-working, to be abandoned.

The only worthwhile bit in here is the notes.  I need to refactor
master and then completely override this version.