Autocomplete nick support

to add autocomplete support, i ask the server for a list of nicks that have the prefix of the current nick, then i select the last one and replace it in the line of text typed by the user