Move pg:diagnose from pg-extras to the main CLI

and add a spec for it
Merge pull request #1132 from will/movediagnosetomcli

Move pg:diagnose from pg-extras to the main CLI and add a spec for it