Refactor policies to the policies module.
Add check for outdated polkit file. Closes #3209.