more debug tweaking
write out session explicitly before redirect
add missing imap server save module to newly created imap_debug module
set