Added a definition for the npm imap module.

The typenames match those from the documentation.

I need help to make the interfaces part of the module, instead of public.
Please see: http://stackoverflow.com/questions/26249210