Mass invite function

This is a pull request made relative to the add-confirmation-email branch.