Added production deity loading.
Updated to latest code changes by @alexbennett
Template is now completely generic.