Get token request working

Improvements and fixes relevant to temporary credentials request.
Test for temporary credentials request using HMAC_SHA1 signature.