Fixed time handling in CWS

No more negative time when contest ends or starts! And the countdown is now relative to the server time and not to the local time.