add support for running tests with `npm test`

closes #1

- run tests with `npm test`
- watch and test with `npm run-script watch-test`
- added .gitignore