[tor-commits] [obfsproxy/master] Restructure event callbacks by state, not connection side