Figuring out how to dual run the app as a daemon or CGI