Add Travis CI config and npmignore

* Ignore the test dir etc for npm

* Add Travis config