Move ThemeServer and FrontendCore into API