Addded basic support for APPEND command
Fix sequence number-based functions and do not connect to the server before all event handlers are attached first

Fixes #46
Fixes #26
Merged upstream changes
Updates .append() and ._send() to support Buffers, .append() to use a configuration object, and some code tidying
Adds correct respect for contiunation responses following APPEND
Strips out spurious debugger breaks
Ignores continuation commands due to IDLE
Removes spurious line break in APPEND
Merge pull request #45 from noosbox/master

Add support for APPEND -- thanks @ajessup
Force IDLE extension support to wait for continuation from server
Allow options object for append() to be completely optional
Minor doc update
Bump version
Do not modify Buffer prototype in case some other module does, with the same function name
Bump version
fixed: issue with error loop in pipe code
so this code make error recurrung call and as the result stack overflow when come things wrong with connection lost connection or dns lookup failed

  var cleartext = pair.cleartext;
  cleartext.socket = socket;

  function onerror(e) {
    if (cleartext._controlReleased)
      cleartext.socket.emit('error', e);// in this line we call emit error event in recurring way. 
  }

  socket.on('error', onerror);// this code the same as cleartext.socket.on('error', onerror)
Merge pull request #53 from vedmalex/master

fixed: unlimited error loop
Support OAuth for authentication if server has AUTH=XOAUTH capability
Use XLIST on instead of LIST if supported by server and stop filtering mailbox attributes when parsing the response.
Style changes and re-instate error message to login callback when no support auth available