Preliminary support for TOR
Merge remote-tracking branch 'origin/master'