Adds `npm test` and travis.yml

Fixes #137.