add socket.io based file system events

this is the server side implementation