The S2S (federation) code was not big on logging. This commit introduces new logging, and structures the logged messages. This commit does not introduce functional changes.