Add automatic flagging to Team Mode

Team mode workshops now support automatic assessment flagging. Also, a
few small bug fixes.