[ticket/11688] Purge TWIG cache

Purge cache now removes directories inside cache directory
Also replaced opendir() with DirectoryIterator in purge() function

http://tracker.phpbb.com/browse/PHPBB3-11688