Title: #907: WebUI: fix WebUI unit tests
This pull request fixes WebUI unit tests.
And there are also commits from PR #628 which should be removed once the PR #628 will be
pushed. But they are necessary for this PR.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/907/head:pr907
git checkout pr907