Auto-completion fixes

Fixed the case when server would suggest multiple auto-completions by
flattenng out the multi-dimensional array into a single dimenton. Also
removed local hints for keywords: these are covered by ajax hints
anyway.