add callback for processing continuation lines to imap_command_t

rewrite auth=plain handler to use new callback

move LOGIN code to login.c

change imap_conn_write() return value to int so it can signal write
errors