Change Contest's endTime to duration.

There is no point storing the time it ends. All we really need is the start time and the duration of
the contest. We can compute the endTime from that.