Shifted the deploy and undeploy endpoints to sockets.io