Method calculateDirectorySize rewritten.
Added templates.php and directory liste template.