Add support for certificate-based authentication

The certificate file and key file should both be in a format that is
usable as arguments to requests.post(cert=(cert_file, key_file)).