Added parameters for authentication.
Changed check_jenkins_url to work with new _client.