Unifies event handling for TorrentManagers, plus various changes.