Added an option to send the password as md5 hash (this is the default behavior).
One can still send the password as plain text if he chooses to.
I left this option since some clients may not have an implementation of the md5 algorithm.