store ignoreSSLCertificateErrors per account in database.
added retry mechanism if upload fails.

Upload will be retried on next sync  occasion.
copied better message-retry mechanism from legacy client