Adds `npm test` and travis.yml

Fixes #137
Merge pull request #138 from jbnicolai/travis-ci

Adds `npm test` and travis.yml