Moved console UI into a separate file

This is to avoid problems with dependency cycles.
Separated widget creation from logic in Solver_box
Moved system tray icon support to its own file