go back to creating file in memory; determine installer type(s) by inspecting the plugins in use

The template is added immediately, in the FileGatherer, allowing other plugins to insert other
content if they wish, with the content finalized later, in the FileMunging
phase.

This returns all plugin operations to their proper phases, while avoiding load
order issues if the installer file(s) have not been added yet.