[ticket/12775] Add a container_factory class and remove functions_container

https://tracker.phpbb.com/browse/PHPBB3-12775
https://tracker.phpbb.com/browse/PHPBB3-12420
https://tracker.phpbb.com/browse/PHPBB3-12774
(Kind of required for https://tracker.phpbb.com/browse/PHPBB3-12685)

PHPBB3-12775
this is added into the container after the compilation and the call to the dumper, so we can inject an object instead of a definition