Shuts down the actual browsers internally when the browser docks are hidden by user.
Refactors all cases where a window class was created to show a browser dock in to one class: BrowserDock. Removes some unnecessary code duplication.