daemon listener to http serve code
fix compile errors
test for serveHTTP