Remove user-facility and member-resource attributes if needed

  - deleteMember call removeMember method
   - delete member attributes in this method
  - deleteResource call removeGroupFromResource method
   - delete resource attributes in this method
  - deleteGroup call removeGroupFromResource method
   - delete group attributes in this method
  - deleteUser call removeMember method
   - delete user attributes in this method
  - deleteFacility can't be delete if there are any resources left
   - delete facility attributes in this method

 Changes for method removeGroupFromResource
  - remove user-facility attributes for all removed members where user
    has no other relation to facility
  - remove member-resource attribute for all removed members and the
    resource

 Changes for method removeMember (from Group)
  - remove user-facility attributes for this member's user and all
    affected facilities where user has no other relation to facility
  - remove member-resource attributes for this member and all resources,
    where member has no other relationship to those resources (ex.
    through other groups)