change imap cache format
misc imap module fixes
change default session type. there is a bug in the db version that
causes random logouts
session related fixes.