little generalization to be able to use repositories with username/pwd, e.g. my.datomic.com