Add travis-ci and coveralls

Fixes #1.