Code refactoring to the LDAP store. Added support for the Group type when creating Grant relationships.