Added sketchy magic to create and delete ContestProblem objects when saving contests.