Refactoring of ImapSession class. Added dependency of SocketSingle in
ImapSession class. Also ImapSession class takes ownership of Session and
SocketSingle objects.
Remove exception specification in SocketSingle class methods.
Fix tests.