Issue #17: added threading for invitation emails and feedback for whether email sending failed Closes #17 See merge request !36