Adds a tox file and uses it in Travis CI.