Added support for downloading by filename

Changed how filenames are handled, still needs some tweaking, and allows users to redownload based on filename.