Sort out .onion handling in arti-client
Incorporates the non-conflicting part of !1113 (closed).
Completes #732 (closed) I believe. (There are still some TODOs.)
I have confirmed that in practice I can still connect to the DDG .onion service.
Edited by Ian Jackson