fixes #2887 - global options --username nad --password should behave con...

...sistently and should override settings

  - the foreman part