use imap-client v0.9.0
Merge pull request #234 from whiteout-io/dev/WO-785

use imap-client v0.9.0
use imap-client v0.9.0
Refactor rest dao to use promises
Refactor public key service to use promises
Refactor pgp service to use promises
Refactor lawnchair dao to promises
Test lawnchair dao

Test pgp promise api
Fix error handling in lawnchair dao
Fix rest dao and invitation dao
Test device storage dao
Test public key dao
WIP: start refactoring auth service to promises
Refactor connection doctor
Refactor update scripts
Refactor crypto module
Refactor oauth
Use native promise api in services
Refactor admin and privatekey dao
Refactor auth