Ldap improvements and fixes

- Configurable attribute for LDAP username through admin console
- Support for sAMAccountName to be used as username in AD
- Support for "testConnection" and "testAuthentication" in admin console to improve user experience
- Support for sync whole user into LDAP (not just username+password)