Added on exit callback in ImapSession and on close callback in
SocketSingle.
Added option SO_REUSEADDR in SocketListener for address reusing.
Fix seconds formating in logging. 
Improve main file. Now simple imap session could be perfomed (greeting,
capablity, logout).