Break out stream copying into its own function
Break out stream copying into its own function

Original git commit by Alexander Larsson <alexl@redhat.com> at 1187940875 +0200

svn path=/trunk/; revision=780

philipl/gvfs,gicmo/gvfs,gicmo/gvfs,gicmo/gvfs,xkahn/gvfs-cmis,cpatulea/gvfs,halfline/gvfs,xkahn/gvfs-cmis,cpatulea/gvfs,halfline/gvfs,xkahn/gvfs-cmis,philipl/gvfs,halfline/gvfs,xkahn/gvfs-cmis,thiblahute/gvfs,philipl/gvfs,gicmo/gvfs,thiblahute/gvfs