Fixed issue with api accepting expired tokens

The token cache was being instantiated incorrectly.  The timeToCacheToken
and maxTokenCacheSize parameters were reversed causing the token to be
cached for a very long time (12 days instead of 10 minutes) after it had expired.

Change-Id: If2ae075d44729fbbce472c80c46d3b09104c61e5