Why are styles being declared via getConfig()? It seems unlikely that there will actually be styles that need to be added to every page.
I'd expect that styles would be added added as needed when the wikitext is processed, much as how DataAccess::parseWikitext() or ::preprocessWikitext() currently include 'modules', 'modulescripts', and 'modulestyles' as part of their returned data.