Add .travis.yml.

This should configure a CI system to run, which is nice. I've also added
a build status badge, though there aren't currently a lot of tests, so
this should be taken with a grain of salt.