[ticket/12685] New CLI container for load extensions

https://tracker.phpbb.com/browse/PHPBB3-12685

PHPBB3-12685
with these changes https://github.com/phpbb/phpbb/pull/2576#discussion_r14924332 please =)