Fixing access_token handling in gmail account IMAP backend and cleaning up code

__volatile_tokens__ doesn't work since you don't declare global in the functions that you r/w it. 
I cleaned up the global variables in the account backends since global variables are generally not good practice. 
I added tests verifying that my changes did not break the model IMAP backends