Switch doc building from epydoc to Sphinx.

This adds sphinx-based configs for doc generation, along with some templates
and a new `docs/index.rst`.

Still to come: updating the doc build script and merging Danny's autodoc
changes.