rearrange in preparation for streaming
rework hooks
Merge branch 'master' into streaming-results
improve streaming results.  add example
display results in streaming example
throw error on 0 entries, rather than hang forever