Fixed logs, part 2.
Little more encapsulation.

Now pointer to raft repository is a private field of the context.