Close invite user modal immediately after submit.

Closes #3672, Closes #3673, Closes #3680
- Close and reset modal immediately after submit instead
  of waiting until after processing has finished.
Merge pull request #3706 from jaswilli/invite-fixup

Close invite user modal immediately after submit.