Fix protocol, and introduce port & auth from url parts