Moved LDAP config out of plugin code and into config file. Cleaned up LDAP code.