Add status bar to the gui and settings for the API
Fix some of the spaghetti code and 'minimize to tray' feature