[ticket/11854] Move captcha stuff to phpbb/ and use DI for plugins

https://tracker.phpbb.com/browse/PHPBB3-11854

TODO:
- [x] Migration to update the current setting

PHPBB3-11854
`scope` comment repeat. same for below.