Split gui from functionality

These are some fairly modest changes made to kano-settings to split the functionality away from the gui - a lot of the functionality has been moved to the system folder.
it's better if you only run it once.
is_hdmi = is_HDMI() ...