Add policyfile generator
Merge branch 'policyfile-init'