[Fixes #9] Added ability to import IMAP emails

- Refactored JavaMail based providers
- Extract mstor config to a file
- DB migrations for new fields for IMAP
- Index end-point now takes password as input.