UI Freeze fixes

>> UI no longer hangs when downloading is cancelled
>> Used IOUtils from apache for closing streams
>> included in the src folder the external libraries in jar file
>> fixed overwrite issues by auto-renaming