Ian/ai tweaks

Ready for review. Looks like the invite object has changed, @nicolashery lets catchup before merging it or maybe you can point out to the changes when you make the review. I did this against the branch nico/invite-fixes, currently also in PR.  Dealing with Behaviour changes in https://trello.com/c/7WMZ34Aq/69-5-testing-verify-that-access-and-invitations-works-as-expected-fix-bugs-as-needed.