Add bcrypt hashing for passwords stored in the db

Work factor is set to 13, this may need tweaking.