Add delegate to allow for notifications when certain events happen

# What this does

This adds a delegate to allow an object to receive notifications about autocomplete events. The two events that I added delegate methods for are when the autocomplete field did commit the autocompletion, and when the autocomplete text was updated.