Expose localPort and a connect event to allow built in identd servers

This is just a tiny change to expose `localPort` instead of having to do `socket.impl.localPort` so anyone can access that information if they need to, say when building an identd server.

It also exposes the underlying `connect` event when a connection is established.