LDAP code clean up and person import dialog. Fixes #84.