Fix SSL CTX bug and add support for TLS1.1/1.2

SSL CTXs should be created after the SSL library initialization, and be
kept until program termination.

Also, TLS version 1.1 and 1.2 are now supported for secure connections.
Document the IMAPFILTER_HOME variable.
Sync with lefcha
Sync with lefcha