Updated log helper to what I've been using in Cornerstone.

Most notably, {{log}} now does the equivalent of {{log this}}.
Also options.write writes a logged thing to a browser console.