Adds coveralls support in Travis.

Fixes #862.