fix(privileges): make privilege names ui friendly

SD-1124
Merge remote-tracking branch 'tolga/feat-privilege' into feat-privilege
New behave tests for getting privileges with preferences