Fix #1011 Make autocomplete wait for user search to finish before suggesting
Chosen method explained in #1011 (closed), required some refactoring to support returning suggestions asynchronously
Chosen method explained in #1011 (closed), required some refactoring to support returning suggestions asynchronously