Improve the search results page

This is a work in progress, but the ticket is vague in any case, so feel free
to merge if you think it's satisfactory.

Screenshot to follow...

Closes #1163