[config-builder] add template to safety rules
[config-builder] add template to safety rules

This allows afety rules to be built with a template. I also noticed a
couple of wonky things like duplicated calls to setting safety rules
paramters and not passing by reference the template option. I verified
that both validator and safety rules can leverage the template by
creating a template that focuses on non-standard logging and seeing it
appear in the destination.

Closes: #3147
Approved by: mgorven

aptos-labs/aptos-core,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,libra/libra,aptos-labs/aptos-core,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core