hide autocomplete and clear buffer on clear

The input buffer wasn't getting cleared on ctrl+backspace
or select-all + backspace.
don't insert an extra space

Only relevant when inserting a mention in the middle
of other words.
determine query based on trigger + 2 words or just last word

Getting to the point where we can probably strip out the
inputBuffer stuff completely.