Refactoring to use MyURL idiom
Adding wrapTemplateFile
More refactoring of MyURL usage.