diff: add general extension point for diff viewers