[SD-1122] Refactoring the check permissions
Merge branch 'feat-privilege' of https://github.com/superdesk/superdesk-server into feat-privilege
[SD-1122] Authorization improvements and added missing privileges
[SD-1122] Unit tests are added for the privileges
Flake8 fix
Some refactoring in auth: check permissions
fix(privileges): make privilege names ui friendly

SD-1124
Preferences should have the merged privileges
Merge remote-tracking branch 'tolga/feat-privilege' into feat-privilege
New behave tests for getting privileges with preferences
fix(privileges): make client refetch it after user/role change

SD-1124
Spkie privilege fix for behave test
Merge remote-tracking branch 'tolga/feat-privilege' into feat-privilege

Conflicts:
	features/preferences.feature
Merge remote-tracking branch 'upstream/feat-privilege' into feat-privilege

Conflicts:
	apps/users/services.py