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.