Add admin/flags view and fix a bunch of small template things