Added a 'use_encrypted_password' flag

In order to be able to login into sugar using ldap authentication, I had to send clear password instead of md5(password).
I've added a flag for this behavior.