Better last_activity updating for groups when docs are updated and comments are posted

Fixes #380