[ticket/12291] Allow extensions to use custom topic icons and smilies

<a href="https://tracker.phpbb.com/browse/PHPBB3-12291">PHPBB3-12291</a>.

This PR against develop replaces the old one #3031 against develop-ascraeus.