Improve e2e handle connect request

Determine if next hop is router or e2e client.
If e2e client, construct its local URI.
Add URI parsing functions.
Move peer processing into peer handlers.