added freedraw handler after much trial and error.
fixed a socket.io listener issue by calling removeAllListeners. previous drawing listeners persisted across page views