Create IOLoop instance in the main thread, add boxclient.AuthServer (OAuth2)