added handling of 'movement' events in socket.io