user invitations

added logic for working with user invitation API calls/responses