Parameterize the PBKDF2 algorithm in application config

http://meta.discourse.org/t/sso-between-discourse-and-xmpp/8567/5
Merge pull request #1241 from dougalcorn/config-pbkdf-algorithm

Parameterize the PBKDF2 algorithm in application config