Add support for TravisCI.

Also add TravisCI build status badge to README.md.