[refs #9] Rewrite autocomplete system