Fix error when doing non-ASCII forum search

Fixes TNL-160
Add cohort information to forum search events
Remove dead code
Add events for cohort modifications

This includes cohort creation/deletion and membership changes.