Extracted out processResults function so it can be reused in apps outside the explorer (like on the /search page).
Added elasticsearch results to /search.
Resolved merge conflicts.