Refactor sending of IMAP4 literals, add logging

* elmo-imap4.el (elmo-imap4-send-command): Refactor sending of
  literals, add logging.