Refactored the construction of typeahead options from directiv attrs.
Fixed usage of limit attribute.