fix API wrong response (Non JSON) bug
Primitive API authentication. (Closes #1565 DMS-CLIENT: 2 requests for 1 Action)
Retrying attempts support Refs #1567