Improve LDAP test infrastructure and fix bugs revealed by tests.

1. Fix LdapAuthenticationHandler auth bug reported on cas-dev.
2. Fix several bugs in LdapServiceRegistryDao.
Merge branch 'master' of github.com:Jasig/cas into ldap-tests

Conflicts:
	cas-server-support-ldap/src/test/java/org/jasig/cas/adaptors/ldap/services/LdapServiceRegistryDaoTests.java
	cas-server-support-ldap/src/test/java/org/jasig/cas/authentication/LdapAuthenticationHandlerTests.java
Merge pull request #291 from serac/ldap-tests

Improve LDAP test infrastructure.