Refactored domain_add(), fixes Bug #1914
Merge new version of Net_LDAP3
Fix inetdomainbasedn attribute handling in domain_add(), some code cleanup,
removed redundant LDAP search
Fix "PHP Warning:  mb_strtoupper() expects parameter 1 to be string, array given"
in domains list sorting (for domains with aliases)
Create the database entry and configuration on replica hosts, then trigger the replication agreement configuration
Ensure replicas and replication agreements are added correctly
Generate an apple-generateduid using uuidgen
Introduce a new setting for the home directory base path
Fix typo