added support for version 2.3+, added initial support for LDAP
ability to turn auto-connect on or off
removed option to set authtype (moodle doesn't cache user credentials)