Worked on PendingInvitationRegistry

- Added (unimplemented) methods for handling pending requests.
- Rewrote addInvitation to take into account pre-existing requests.
- Added AcceptedInvitationException and AcceptedRequestException