Added MainThemable. Added preferences management. Changed updateUI argument type to EventObject. Added registration for layout urls to ThemeInfo.