Support for LDAP authentication and account management

(I WILL force push into this branch!)