Add composer diag command to diagnose problems automatically
Add docs for diag command
Rename diag to diagnose, fix feedback
Merge branch 'diag'