Add Link-diff printer and factor out common kbp document-loading code.