Refactor ldap operations into new Ldap\Client class. Also added extra debug logging to .travis.yml and enabled tests for memberOf config variable.