Reuse existing token credentials if possible

Do a few quick tests to see if the token credentials in config.py look
viable. If so, try to use them. If not, request new token credentials as
before.