Use the Sphinx doctest builder

This allows us to test our documentation snippets using the standard
"doctest" utility.
Merge pull request #42 from dstufft/doctests

Use the Sphinx doctest builder