Fixed the deleteTemplate and deleteScript xml SQL files. Removed all templates and scripts (except global) on Mirth engine startup because the channels may not have been undeployed on shutdown. Changed removeAllScripts to removeAllExceptGlobalScripts.