Added caching and tests for obtainToken
try..catch for JSON parse and cache for expiry minus one minute (was half expiry time)
Removing whitespace
Bumping version
Merge pull request #4 from talis/cache-generation-of-new-tokens

Added caching and tests for obtainToken