Mask permissions on private key files

When using "nova x509-create-cert", the private key should be written to
a file with the permissions 0400, not (world-readable) 0644, in line
with how ssh private keys are treated.

bug 1112605

Change-Id: I0b20378efba38fa58f4ad9a33cd15b3432ebb8a2
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Update to requests >= 0.8

The requests module dropped all configuration with the 1.0.0 release.
There's no danger_mode and no 'verbose'' mode. The former
shouldn't be necessary anymore and the latter can be done by setting
a different log handler for the request.logging root logger.

Change-Id: Iec169ef6e39097814cdbf1b777bc0590236692ba
Merge "Mask permissions on private key files"