Setup tox testing and some cleanups for it.