Use set -e for build.sh rather than manually checking each exit code
Merge pull request #790 from realm/tg-set-e

Use set -e for build.sh rather than manually checking each exit code
Add more and better tests for link queries
Implement BETWEEN for link queries
Implement the IN operator for link queries
Add a helper for checking predicate preconditions