[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
actually it is used for cron tasks