daemon: use 4-space indenting everywhere
daemon: replace custom writeToLog with printing to stdout

systemd automatically forwards process stdout and stderr to the journal
where it can be viewed.  make sure to set stdout and stderr to linebuffered
mode so the journal events are not delayed.
daemon: misc cleanups

* make various things const
* remove unused variables
tohkbd: map search key to control
Merge pull request #10 from saaros/ctrl-and-cleanup

Map search and list keys to ctrl + some cleanups