Added cached token refreshing.

Tokens expire after one hour.