Configure travis-ci

Depends on #23
Fixes #18


@glyph I think this comment is probably better made in PR #23, since that is where the change originates from.