Added viewer state reporting interface to the ViewerClient object.
Added debugging output to trace down flaky bug