Fix EZP-21264: The JS REST client does not support parallel requests
Added support for parallel requests as well as workflow for requests suspending during authentication.