Ben dialog error 

Passed a shared_ptr through SCIRunMainWindow, NetworkEditor, ModuleWidget, ModuleLogWindow.
Class DialogErrorControl created for control of error dialogs (limit is currently 5).
Shared_ptr created above networkeditor (In SCIRunMainWindow) so not null.

If there is a better way to do anything in the code or the style is poor let me know. 
Let's move this check logic into the new class. It should be a method call like 
```if (dialogErrorControl->showDialog())
```  QMessageBox::critical(...