Tools for sws2rst

This is Pablo Angulo's set of tools for sws2rst, see http://trac.sagemath.org/sage_trac/ticket/10637.  This closes #74, or more precisely supersedes it since I already closed it.

It's not based on the current tip but I hope that's okay.