Autocomplete for tags

This adds an autocomplete feature for tags in the metadata block.
Feedback welcome.