Configure travis

Adds .travis.yml and configures tests to run in multiple environments.