Setup testing environment including TravisCI

This changes some config options in tox.ini, creates .travis.yml and updates .gitignore.