Tidier debouncing of search results, handle ?q=params better

Fixes #1099