search: Improve search result click behavior
Created by: fkling
This commit adds logic to handle middle click on links, and changes the implementation to delegate the event to an actual anchor element so that the standard browser behavior is better replicated (e.g. opening new tabs in the background).
I tested the behavior in Chromium and Firefox on Linux.