createlinks, templates: add configurable default log retention and rotation policies. Refs #2053