Refactored Diagnostics object

redesigned Diagnostics to enable loading of external scripts that
define the additional assets for the post type.