Added support for autocomplete when part of the token has already been
typed in, i.e. in the middle of identifier (added completeSymbol() to lua interface, returns the prefix as
a second value).