Delete duplicate rename function in ProjectManager

Got rid of a rename function that was an almost exact duplicate of
another. In the sake of "single responsibility per method", I removed it
and adopted the code as necessary.
Merge pull request #788 from Catrobat/refactor_renaming

Delete duplicate rename function in ProjectManager