Allowing token retrieval in main thread (quick fix)

Quick fix based on this thread: http://stackoverflow.com/questions/8534831/method-retrieverequesttoken-raises-communication-with-the-service-provider-fail