Setup socket.io framework