moving serverdaemon back into app scaffolding.