Search logging

Log number of results, ids of results, and
search parameters for all searches.

Once this is in place we can use a logging
addon to notify us of searches with no results.