Add simple logging to MockRepository

In order to make assertions about summaries in test cases,
we need a way to record the in the MockRepository. This
adds a simple logging facility that allows us to easily
access and check the summaries generated when changing
entities.

Change-Id: I92311227be6401f01081e8e3ca764c9d1d75b02c
Merge "Add simple logging to MockRepository"