[qmf] Introduce discovery of authentication from the anounced capabilities(IMAP/SMTP)

Ugh, looks like I forgot to save the file..

Thanks!