Fix refactoring issues with shared projects

When creating a new file as a result of a refactoring operation in a shared
project make sure the file is added to the shared project, not the referencing
project.

Fixes bug 19531 - Moving class to its own file from Shared
Asset Project adds the file to the wrong project