[tor-commits] [tor/master] Refactor our logic for sending events to controllers