Move iOS templated file processing to new utility

Moves the templated file processing to FileUtil and removes the iOS
plugin specific code for processing templated files.