minor refactoring in Main for embedded ApacheDS.
Refactoring to make EmbeddedADS.java easier to read.
Make LDAP tests run on Windows.