src/app.c: Create the log files with tighter permissions

Remove the world readable bit from log files. i.e create them as

    -rw-r-----

This is required as the log files (esp the debug log) can contain
sensitive information.

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>