templates: engine logger, template source api to set

This allows all engines to access the source's logger (if any).  This
is so engines have the option of making this logger accessible in
templates.

This lines up with how Deas passes its logger to its templates.