Set up local machine test automation with tox.

Includes running tests with 'coverage', as well as testing that Sphinx docs build cleanly (we will add Sphinx doctest support later).