Fixes permissions and sorts course groups for community discussions and shares.

This commit includes a lot of the small fixes that the UCLA team has added that haven't been kept in parity with the community-acl pull request on Github.