Integrates Password Policies in DokuWiki FS#2147

The password policy can be set in the config manager. This policy is then checked against when a user sets password. It is also used when generating new passwords. 

A new policy is only applied when a user changes her password.