Add react server-side rendering and related gulp tasks, add check in sockets for node vs browser execution