Mass invite function

Merge into master this time.