fixes #3018 - API v2 metadata for pagination, search, order in index collection json response

This PR is dependent on PR #862.  After PR #862 is merged, I will re-base.