Revise the password strength function

Password strength function is now based on the following information
http://en.wikipedia.org/wiki/Password_strength#Bit_strength_threshold.
Fixes #22.