Update openfiles.js to fix issue #3089

1. add the new file node to OPEN FILES panel once get the updatefile event
2. save.js will dispatch a afterfilesave event, listen the event in openfiles to remove the Untitled1 node from the panel