Added tests for local and remote init.
This tests the changes done in
edb66cb05ded and
b898afee9d0d.
Add ui method to set --ssh/--remotecmd, use it in init/clone/pull/push/in/out.
The only user visible change is that 'hg init' now accepts this options, too.
clone: move code into hg module. make doc better.
api in commands module is still same, but version in hg is best for
calling within python now.
parse url schemes more strictly.
previous code mistook repo named "hg" for scheme named "hg".