Okay this could easily become a huge ticket with loads of loose ends but lets see: - Move daemonising to it's own module. - Init script? systemd script? This is also completely dependent on #50