modified to work with rewrite/$_GET. Added sorting to directories

Invalidate button will work with either rewrite or $_GET options.
I have added the ability to sort by directory, memory, hits or files.
The files in each directory are displayed by name ascending.