Add daemon capabilities to the server

Still need to test background operation