[minor] Extract a few map/reduce patterns.
Restore an error that I hid while debugging.
Fix a `merge` case that could toss req. fields.

Unfortunately, I’ve only seen this exhibited in `pending` tests that were failing differently than they should have been failing.
fix thread/file handle leaks in API tests (Fixes #151)

Bump unfiltered version to 0.8.1
Explicitly close the dispatch request handler
Bind local port only for tests
fix Travis thread exhaustion

Reduce max parallel threads by waiting a bit after (asynchronously)
shutting down each unfiltered/netty server instance
Merge pull request #262 from sellout/more-minor-fixes

More minor fixes
add `interpretPaths` to complier and its tests.

12 tests failing
6 “The expression '…' is ambiguous and might refer to any of the tables …”
6 “is Right but” wrong paths
Only fail if multiple relations match the name.

Previously, just the existence of multiple relations caused an ambiguous reference error.

Still 12 failures, now they are all “is Right but”.
Fix name comparison after path interpretation.

All tests passing again.
wait on the server's thread pool's shutdown future
Merge pull request #261 from mossprescott/151-api-test-leak

API tests: fix file handle leak in SBT, thread exhaustion in Travis
Tighten up the AmbiguousReference check.
Fix some problems with joins.

• get rid of extra `null` in every `right` array.
• properly deal with being nested in `value` field after reduce.
• have a test that actually selects a field

Note: this won’t actually work in the REPL/server until the fixes in sellout/slamdata/syncing-tests are merged.
Merge branch 'syncing-tests' into temp-joins-ambiguous
Create new bindings after recursively substituting

Fixes a problem where binding values would have unresolved free variables in them.
Shortcut merge when both graphs are identical.
Tighten up name/Path comparisons.

Per @mossprescott’s comment on 7ad7db1674484b50e5872a59427eccc59bbe9ee9
Make reference deletion less conservative.

Fixes #266.
Move `interpretPaths` from the class to the object
Simplify a conditional expression.