Moves diagnostic classes to a separate bundle.

The Diagnostic class and support classes are used in the Stackhammer
API. The API doesn't need other 'common' stuff so this commit moves
the diagnostic classes into a separate bundle.
Merge branch 'dev' into diagnostic-bundle