[WIP] Feature/migrations

Replaces https://github.com/phpbb/phpbb3/pull/1067