getVersions returns null if version not found
Set cookie domain correctly
Support auth token in header and query string
Update unit test
Powershell script client API