Add multiple source file and templating support to file.append (#6905)

Allow states/file.append() to use multiple source files and templating
to generate the text to be appended to the 'named' file.