Implemented the new_token function. This has been moved to the FetchApp class (from the AccountDetail class) because it needed to change values in the main FetchApp class.