Specify content type on account creation
Verify SSL certificate against known CA

If the directory /etc/ssl/certs (see ROOT_CA) exists and the connection
is secure, use the certificates in that directory to validate the
server's certificate.

Otherwise, use default behavior (different for Ruby 1.8 and 1.9).
Whitespace sanitation