Adding travis and proper test script for npm so travis will auto-run tests.
Adding mocha as a dev dependency, because Travis wasn't told about it.
Merge pull request #7 from rhyolight/add-travis-ci

Adding travis and proper test script for npm so travis will auto-run tests
Merge remote-tracking branch 'upstream/master' into add-general-utils