Added Download functionality to CGI and js. It supports binary files and text.
I tested by uploading zip files, pdfs, so, and html files.