e2e: make uri parse functions inline

also, fix create_endpoint bugs
e2e: minor connect fixes