Implement basic log emissionn to files.

I'm not very happy with the implementation of
Logger::printJSONKernelArgumentInfo(ArgInfo& ai). It's a massive hack
that probably won't work in all cases.