Fix making calls with tokens to editing APIs
Fix making calls with tokens to editing APIs

The code to handle the bearer token used by the editing service was used
for all tokens, even those not related to the editing service.

indico/indico,indico/indico,indico/indico,indico/indico