Added function to initialize global variable with an access token if it exists
Minor code standards fixes
Updated popup to work with new authentication process