Add travis-ci testing

This pull modifies the two suggested testing scripts so that they exit 1 on failure (required to make travis actually notice the failure), makes the ordering of tests in runtest consistent, and sets up travis testing.

Remember to actually enable your repo on travis-ci.org after (or before, if you like!) merging this.