Slightly sped up tests in tokenstore. Changed the way the constants in that package are used when a refresh fails and a new one is rescheduled. Moved the lumberjack settings to the loglevel package. Added check to ensure writing to a bad file fails.