Handling conversion of .tar.gz files to .zip files when requested.

R=tapted@chromium.org

Review URL: https://codereview.appspot.com/48730046