Code and tests for persisted games.