Refactor/document chaining
Improve logging
Add a bit of documentation
Implement NOOP and LOGOUT
Rename callbacks
Rename driver_ctx -> ctx
Add conn_eventcb_with_req to combat leaks
Add imap_resume to simplify resuming and leak prevention
Fixing simple memleaks with imap_resume
Fixing most eventcb related leaks and double frees
Fix a leak in the input handling
Fix the more convoluted memory protection issues