[tor-commits] [gettor/master] Refactor email and add tests for email and locales support