Fix file viewer permissions.

tmpfile.mkdtemp creates a directory with 700 permissions,
then shutil.copytree copies the 700 over to "dest". This directory is
then unreadable by the webserver.
Merge pull request #1461 from oremj/fix_permissions

Bug 912491 (Fix file viewer permissions.)