Separate addition of new user into a different transaction.

Also, fix/improve logging messages.
Fix check for existing invites.

Since invites are ancestor-grouped by inviter, we need to add the
parent to the query.
Bump version.