Rework yokadid daemon handling

I was having problem with the current implementation: it would get stuck when running from within a git post-receive hook, probably because of file descriptors which were still opened. This pull requests replaces the implementation of double forking with a new one and also improves stopping an existing instance by storing the pid in a (configurable) file.