Add support for anonymous Gerrit connection.

Anonymous connection is made if username is left blank ; password, if any, is ignored.
If username is set but password is blank, logged-in connection is made.

Change-Id: I286374505e7b2e10b2f191c84be5be830906af08