Permissions check on org invitations, plus test cases.
Test fixes #1
finishing test cleanup
Merge pull request #1259 from bcipolli/119

Permissions check on org invitations, plus test cases.