Bug 1041026 - Move search bar logic into custom view

@ericedens Basically here I decided that it's up to the TextListener implementation to decide what to do when the text changes. So this method will be called any time the text changes (by any means), but in here we can decide not to do anything if we don't want to show suggestions.