Refactor search_autocomplete_source
Created by: rspeicher
Hi guys, been a while!
Supposedly this method had the most complexity in the project, and it
didn't have test coverage, to boot. So I've tried to correct that. Also
reduces some duplication in what became project_autocomplete
.
Also covers simple_sanitize which didn't have specs, since search_autocomplete_source makes use of that method.