Move daemonize function into its own header file.
Move Watch class into its own files and update makefile.