Create a Password Generator library (squashed 29 commits)

Mostly copied from https://github.com/defuse/password-hashing/blob/master/PasswordHashClass.php