Added sorting to the index on the js side.
Basic file and directory downloading is working.
Need to tweak it to download from /tmp/ instead of putting a tar in the users share