[ticket/12942] Add core.add_form_key core event

Add core.add_form_key core event to allow extensions modifying
form key.

<a href="https://tracker.phpbb.com/browse/PHPBB3-12942">PHPBB3-12942</a>.
The result of _build_hidden_fields is a string.