Some template & log entry cleanup.

- Clean up some log entries
- Add log file purge for testTemplate.pl