Cleanups: move registering functions from Extension to Environment.
Use Environment as a proxy to tokenize/parse/etc. a template.
Remove uninteresting log line.