Rename SearchResult#num_results to #num_hits.
Clean up exception handling throughout the app.
More sundry minor code tweaks.