Sphinx doc

Proposal for the conversion from lore to sphinx (see http://foolscap.lothar.com/trac/ticket/148)