[feature/migrations] Make depends_on static to call it without dependencies

Move installing migrations to migration/install.php and handle figuring
out what migrations have been installed based on phpBB version.

PHPBB3-11318