add support for proxies and escript
deliver temporary filename after downloading a chunk