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

Docs need to be updated also.