Autocomplete tags.

The sorting of matches still needs a lot of work, but it technically
works, and should provide a good base for autocompleting links
afterwards.