Some more little class flags things

Change the search from a GET to a POST to allow linking to the results, and add a .distinct() in ClassFlagModule.teachers().