Added authentication for CAS, PASSWORD, YUBIKEY.

Removed dependency to m2crypto.