Allow the application developer to specify the password iteration count

For you @HaoK and @rustd :)