EZP-21264: The JS REST client does not support parallel requests 

JIRA issue: https://jira.ez.no/browse/EZP-21264
Added support for parallel requests as well as workflow for requests suspending during authentication. Changed tests accordingly.