Fixed bugs in IMAP IDLE code.

Changed IMAP_IDLE_TIMEOUT to 5 minutes instead of 20 (to keep non-conforming servers like Gmail happy.)
Update main window after restoring from system tray. We might need to update the main listview as well.