fix for #64

Tabs -> spaces.
Removed dead code.
Added a new function getFilesIn() witch replaces the missing function
analyzeCacheFolder().
Moved some of the php code outside the HTML body as it have nothing
directly to do with generating the html page.