Implement invitations

Change-Id: Ia6e82dcc332c233f0e2c08e254adb2210df51b18