[tor-commits] [tor/maint-0.2.8] touchups and refactorings on bug 18616 branch