Fixes prefix in json for queries.
Merge pull request #177 from Shopify/predupsort_fail_noprefix

Pre-dupsort: fix query when prefix is passed in JSON
Fix period based stream flushing. Adds flush-period and flush-threshold URL param support to the streaming endpoints.
Fixes stream flush and adds better stream flush logging.
Fixes test comment.
Adds flush to stream event to make it obviously a client flush and not a server flush.
Merge pull request #178 from Shopify/predupsort_stream_flush

Pre-dupsort: fix streaming endpoint flushing and add support for flush-period and flush-threshold URL parameters
Adds some nil checks in lua distinct method.

Conflicts:
	query/lua_header.go
Merge pull request #183 from Shopify/fix_lua_distinct_with_nils_predupsort

[Pre-dupsort] Fix lua distinct with nils
Update reference to OverflowPages from gomdb to match their fix.

See https://github.com/szferi/gomdb/commit/7a5e844277864bb3e70620a36860bb8b2e3b3e75#diff-ec78c1a05bbc9b6368a7ac1e41d25ca8
Add Go env setup, get, and build targets to Makefile
DRY up the Makefile
Merge pull request #186 from Shopify/scripts_predupsort

Adds a local Go env setup, get, and build targets to Makefile