tor-ptmgr: refactor Pluggable Transport code
This is follow up MR to !1504 (merged) and tries to address some of the lingering review notes that were deferred for a future commit.
This is follow up MR to !1504 (merged) and tries to address some of the lingering review notes that were deferred for a future commit.