Things to fix or improve: Make the timestamps on disk absolute rather than reltive. Use timestamps to avoid refreshing tokens when we don't need to. (Or catch failures and retry...)