Clean up Group and Document classes

- Fix delete methods
- Fix getGroups method to fetch all groups user belongs to