Follow-up from #708830: add hooks for alter and save on retrieved nodes: just as filefield/imagefield stuff has been moved out to a module, so should the code to handle upload module's files.

I'm not sure why some of it is currently being done prior to node_save and some of it after, and I don't really have time to figure it out -- filing this in case someone using this has time to do it.