Update riak_search to support some new core apis

Specifically, handle the removal of riak_core_config and the switch to
v2 riak_core fold requests by also handling v1 fold requests.

This still doesn't let the partition_repair test pass, but it gets it quite a bit further along.

cc @jaredmorrow @rzezeski