Add some comments
Add a basic logging utility

It creates a temporary file, and provides interfaces for logging
strings. It gets setup by the app when that starts. I added an extra
path function to open temporary files.