Started refactor and added cluster-wide logging from tests.

For now, I've put the cluster-wide logging into the repo_util. I suppose it could graduate to the rt module if people like it.