extracted view wine logic out of view code

The MainWindow class was calling the wine config bash
program, so that logic was moved into the WineFunctions class.