App_common: add function `files_to_files`

This is a general solution for the particular case of #101.
App_common: rewrite `two_files_to_file`

Using `files_to_files` the implementation is now significantly more
concise, error management is better, and input streams are treated
slightly more concurrently.