Fix token expiration:
* add reference to current date before requesting token.
* use this reference when checking if token is valid.
Merge pull request #4 from flochtililoch/token-expires

Fix token expiration