Download file fixes.

Download manager for file browser downloads files with a stream.
Merge pull request #46 from alediator/file_download_improve

Download file fixes.