allow passing the realm, and minor cleanups
Merge branch '1.2' of ssh://jreimann@gerrit.intra:29418/org.openscada.orilla into 1.2