Batched bulk fetch and hand-crafted search response
Batched bulk fetch and hand-crafted search response

Search results are fetched in batches and the final response assembled
as an iolist rather than using ejson.  This greatly reduces peak memory
use for processing search results as that is now bounded by the batch
size.  The trade off is more calls to couch to fetch each batch.

stephenbm/chef-server,charlesjohnson/chef-server,vladuemilian/chef-server,chef/oc_erchef,Minerapp/chef-server,poliva83/chef-server,itmustbejj/chef-server,chef/chef-server,charlesjohnson/chef-server,juliandunn/chef-server-1,itmustbejj/chef-server,chef/chef-server,vladuemilian/chef-server,chef/oc_erchef,Minerapp/chef-server,Minerapp/chef-server,stephenbm/chef-server,rmoorman/chef-server,charlesjohnson/chef-server,marcparadise/chef-server,rmoorman/chef-server,poliva83/chef-server,marcparadise/chef-server,poliva83/chef-server,chef/oc_erchef,stephenbm/chef-server,rmoorman/chef-server,chef/chef-server,charlesjohnson/chef-server,vladuemilian/chef-server,poliva83/chef-server,juliandunn/chef-server-1,stephenbm/chef-server,itmustbejj/chef-server,chef/chef-server,juliandunn/chef-server-1,rmoorman/chef-server,itmustbejj/chef-server,itmustbejj/chef-server,chef/oc_erchef,rmoorman/chef-server,juliandunn/chef-server-1,chef/chef-server,stephenbm/chef-server,Minerapp/chef-server,chef/chef-server,marcparadise/chef-server,vladuemilian/chef-server,juliandunn/chef-server-1,charlesjohnson/chef-server,Minerapp/chef-server,vladuemilian/chef-server,poliva83/chef-server,marcparadise/chef-server,marcparadise/chef-server