[WIP] EZP-22767: ezscript_require not taken into account on modules

Link: https://jira.ez.no/browse/EZP-22767

WORK IN PROGRESS

## Description
ezscript_require (legacy) not taken into account on modules.

## TODO
- [x] Refactor LegacyHelper
- [x] Call LegacyHelper in kernel controller to add list of file in module_result
- [ ] Create a twig function adding files (JS and CSS) in the html of the page
- [ ] Cleanup and rebase commits