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.