Implemented log entry and contest state data providers.

Ran base.js through JSLint and fixed a bunch of coding style issues.