Daemonize client and server endpoints. Added test cases.