Logic for determining contest running time ignoring pauses.

In addition, added ContestStarted and ContestNotStarted exceptions
and updated register and unregister views to handle that correctly.