Support the logging directive in Kickstart

Another attempt, after the discussions in #18 and #19.

I'll fix the whitespace in a later pull request.