Pass all relevant parameters to tomcat::template so that these can be used when the templates are processed.  Allow the default file mode to be set.  Ensure that the product has been installed before we try to create files under the install directory.
Allow the file mode to be set.