Fix tests

Stuff:
1. add function.bind polyfill to make phantomjs happy
2. gitignore npm-debug.log because `npm test` was generating that file
3. setup travis

(this might take a couple tries to get right)