Test and refactor Event#search.

Test and refactor SQL search engine implementation of Event#search. This lays the groundwork for eventual object extraction.
I think Arel `OR`s would be a great idea, and one appropriate for this PR. Would really clean this up!