Added account and pass options to the node.js API. Added the 'account' method and logic to automatically recognize email accounts