* Always create main window. * Properly handle netowrk manager - it was created twice, leading to potential crashes.
This was caused by separation of GUI and logic. Now logic has an interface that GUI implements. It should be expanded upon later.