typeahead.js bloodhound support

Implemented typeahead.js [v0.10.x](https://github.com/twitter/typeahead.js/blob/master/CHANGELOG.md#0100-february-2-2014) which introduces a major API change.



minor: the second check (selectBehavior == null) is faster so you can move it to be first