add .travis.yml

and fixes for working on travis