Clear selection, context and rename for deleted files.

Fix for #9214.
Merge branch 'master' into dangoor/9214-wrong-file

Conflicts:
	test/spec/ProjectModel-test.js
Merge pull request #9239 from adobe/dangoor/9214-wrong-file

Clear selection, context and rename for deleted files.