[feature/migrations] Make the container available to extension installers

This allows extensions to load and install migrations easily as per their
needs.

PHPBB3-11318