Factor out Tor Socks Port
This MR factors out the local Tor port, so other clients can listen to an TransportEnabledEvent
for Tor and start tasks as soon as Tor becomes available. This would also enable client to pass traffic through Tor's local SOCKS proxy.