only set key expiry after creating the key, simplify calculation of expiry, and actually return a Date-object from getAccessToken, as required
only set key expiry after creating the key, simplify calculation of expiry, and actually return a Date-object from getAccessToken, as required

adamtulinius/smaug,adamtulinius/smaug