Hanging fix

Puts a timeout on the refresh token query. I'm not sure if this is actually the hanging problem, but it's a good thing to have.

Don't merge yet please.
Why is this file getting deleted?