Make search overlay emit a hook 'write-results' after rendering

Allows other modules to hijack links in search / do page images
etc etc

Change-Id: Id317ec3fe4195cb03a77375a73d75cb0d905ca59
Merge "Make search overlay emit a hook 'write-results' after rendering"