Added diagnostics module for self diagnostic api.