removed the unnecessary global
moved the theming stuff to the actual theming layer
deprecated the theme functionality from the AppUI class in favor of the implementation in the themes