[ticket/11727] Template loader support for safe directories to load files from

PHPBB3-11727
[ticket/11727] Fix indentation

PHPBB3-11727
[ticket/11727] Fix indentation

PHPBB3-11727
Merge pull request #1689 from EXreaction/ticket/11727

[ticket/11727] Mark style directories safe to load from