IMAP client as an AMD module written with node API for the browser.