Ticket/12060 - Template and Core Events to BBCode System

This PR adds several template and core events to the BBCode system, as required by my Advanced BBCode Box extension. 

http://tracker.phpbb.com/browse/PHPBB3-12060