implement mock API for groups retrival and creation
changed creating API to a POST request
add API for inviting members to groups