Autocomplete updates.
Updated typeahead and minor refactorings.