Pull most of the main package into daemon package
daemon: Drop extra code
daemon: Add HeartbeatPeriod to config