created module IMAP to contain interfaces
repaired import error in test
Merge pull request #3324 from psnider/imap

created definitions for imap npm package