add client certificate handling for imap and smtp

This implements client certificates for authentication against imap and smtp using the KeyChain api available in Android 4.0 and higher.