Refactor structure and deploy to be able to run client and server from the same node instance