Fix possible port conflict
Add Context to rex sockets plus track them with add_socket
Land #2389 - Fix use of Rex sockets from dlink modules