[tor-commits] [obfsproxy/master] Refactor main.[ch] to support managed mode.