add tox and make travis use it

By putting the test config in tox.ini, developers and travis can both just run tox to run the tests. Now everyone can easily run the tests in exactly the same way.