Fix autocomplete bugs

Fix autocomplete bugs:
1. Validation delay to allow menu click to be processed before blur.
2. Process single value on complete.
3. Improved caching - fewer ajax calls

Misc fixes to be more specific about event handlers.