Fixed crash issues with roundcube incomplete API import
Added date and person helpers
Refactor model and fixed IMAP implementations