Use URIs to determine connection winner

Remove cookies.
Disallow connection requests from self (same endpoint).
The URI with the lower strcmp() wins.