fixes apogee#62 bring in sharejs changes for resetting editor and emitting events