Add support for Travis CI. Fixes #5.

As discussed in ticket.