Add a top-level test script runalltests.sh

Also, update the individual python test scripts to exit with error
code 1 if any test fails.

Finally, change package.json so that running 'npm test' in the
root directory runs all the tests.
add basic .travis.yml file
add repository field
rewrite test script in python to be more cross-platform
update docs with new test script