Make 'npm test' work

Add Travis CI support.