Updated to 1.2, added support for IAM Temporary Credentials.

Hi, I just added support for temporary IAM credentials. I don't know if it's mergeable in this state.
I used a small json library (libjsonz) which I think is under an acceptable license (CC 3.0 Unported).