bug fixes and file name support

Fixed following bugs/features.
Number of connections now being passed down the layer and used.
Better file naming support
Using .part file name, and at the end renaming it.
Using either supplied file name or use download_id.
Url display on the status screen
Support for dir path where the files should be created. More useful with
download functions