Expose application initialization function that loads templates so that it can be called externally