Add .travis.yml and prepare for coveralls support.

This should also add the badges to the README.md. It also adds a
david-dm badge for the dev dependencies.