add config setting for imap authentication
fix conf bugs, add a /check_imap endpoint