Added a Daemonizer class, which fixes some bugs in Daemonize and does away with the specific file descriptor handling.