Added pluggable addressing of connections

Added pluggable addressing of connections.
- Added ability to refer to a connection by a configurable user id.
- Added tests to verify this behavior.

#2401