Added socket.io and basic directional events