move guts of SCT daemon to new function, shared by the two daemon implementations (child process vs. thread)
move guts of SCT daemon to new function, shared by the two daemon implementations (child process vs. thread)

trawick/ct-httpd,tomrittervg/ct-httpd,tomrittervg/ct-httpd,trawick/ct-httpd,tomrittervg/ct-httpd,trawick/ct-httpd