Smarter locale selection in searches

Current issues
* We currently lose the source locale after a search (reset to reference locale)
* If I’m searching for es-ES, and switch to Gaia, es is not automatically selected.
Merge pull request #408 from flodolo/fix_locale_selection

Smarter locale selection in searches