Reorganised preprocessor code so that daemon stuff is actually in daemon module
Allowed running partridge paper daemon only