Bcrypt passwords

The modified files in this commit allow for switching to bcrypt.