explicit format for returned data to gz (.tar.gz)

by default format is text/html which was a cause for failure in data transfer between cywgin service and linux client. 
debug artifacts have been added to deal with an issue.