Small code cleanups and bug fixes.
Implemented time left counter in the contest navbar.