log errors right after daemonize is called

into daemon logs instead of stderr
Merge branch 'initialize-logging-right-after-daemonize' into prezi-release