Add a method clearCredentials() to OwnCloudClient that is used to detect authentication expected by the server instead of setBasicCredentials('', '')