Refactor policies to the policies module.
Add check for outdated polkit file. Closes #3209.
Refactor cmd and add permission change.

The polkit file should be readable by everyone, so we can check its
contents without asking for permission.
Merge remote-tracking branch 'ivan/feature/3209_check-outdated-polkit' into develop