Initial implementation of completion

Currently picks first entry, alphabetically, of the top-10 matches.