Jhbate/ai updates

@nicolashery @kentquirk 
`dismissInvite` doesn't return a `collection` of invitations, so no need to return `[]`.