Add Travis CI configuration.

Fixes #99.

See http://docs.travis-ci.com/user/getting-started/ for setting up Travis CI.
Some steps must be done by the repository owner.