Added chunked encoding + file downloads for application/octet streams. More work is needed on the file downloads though