HTTPS security fixes: Use TLS instead of SSL v3; actually verify server certificate.

SSLv3 has known security vulnerabilities.  Dropbox is going to disable
SSLv3 soon, so switch to TLS.