remove trailing whitespace
gerrit: use authsource to manage login/password
gerrit: remove unused function