* added cleanup flags on template create * added cleanup flags on template edit * fixed tests * added to tests
API only, frontend in upcoming PR.
I'm sorry.