TNL-301 Filter posts by group_id.

https://openedx.atlassian.net/browse/TNL-301

@gwprice @jimabramson Please review.
updated.
although I ended up keeping the first user.setdefault call since it keeps the unit tests simpler and allows for the race condition on L74.