DISCL-235: Code review Friday refactorings

This is preliminary draft review
To me, openWebBrowser function should not be the responsibility of MainWindow(), even it shouldnt know about the type of the window it is opening but I believe there is no easy proper way of doing this with current architecture.