Added and implemented PendingInvitationRegistry

Also:
- Added CancelInvitation command.
- Added numberOfMinutesUntilClaimInvitationExpires setting.