[ticket/12831] Optn to prevent setting HTTP headers

https://tracker.phpbb.com/browse/PHPBB3-12831

PHPBB3-12831
[ticket/12831] reimplemented headers as array

https://tracker.phpbb.com/browse/PHPBB3-12831

PHPBB3-12831
[ticket/12831] simplified code, upd event block

https://tracker.phpbb.com/browse/PHPBB3-12831

PHPBB3-12831
[ticket/12831] fix CS

https://tracker.phpbb.com/browse/PHPBB3-12831

PHPBB3-12831
[ticket/12932] Add method for getting the datetime class and allow overriding

An extension can now override the datetime class by overwriting the
datetime.class parameter in their own yml file.

PHPBB3-12932
[ticket/12932] Fix tests and calls to create_datetime

PHPBB3-12932
[ticket/12932] Remove set_datetime_class method from user class

PHPBB3-12932
Merge pull request #2730 from omniError/ticket/12831

[ticket/12831] Allow events in page_header functions to prevent the setting of HTTP headers
Merge pull request #2862 from marc1706/ticket/12932

[ticket/12932] Add method for allowing override of \phpbb\datetime class

* marc1706/ticket/12932:
  [ticket/12932] Remove set_datetime_class method from user class
  [ticket/12932] Fix tests and calls to create_datetime
  [ticket/12932] Add method for getting the datetime class and allow overriding