Add Travis CI integration

This adds the code changes necessary for Travis CI integration. Some minimal setup just needs to happen by @caolan on the [Travis CI website](https://travis-ci.org/). This lets the tests run automatically for each build and can also be configured to show if a pull request causes any tests to fail.

This an update of #32 which wouldn't work as written.