Fix bcrypt warnings

`gen_salt` and `encrypt` are now deprecated in favor of `genSalt` and `hash`.
I also changed the code to just call bcrypt.hash with the desired salt length
instead of generating the salt separately. Less code that does the same job. :)
Merge pull request #65 from andrew12/fix_bcrypt_warnings

Fix bcrypt warnings