* altered generate_pw_hash to produce SHA-512 hashes (unix type 6)
* altered is_pw_correct to check against the old and against the new hashes. Backward compatibility is preserved.