Changes class flags search from a GET to a POST

In order to make the search results linkable.
Adds .distinct() to ClassFlagModule.teachers()
Merge pull request #1019 from learning-unlimited/class-flags

Some more little class flags things