allow openQA to set a connect password in the job

80% of the code checks for localhost. But sure, I can rename it to check_cookie_or_localhost :)