Rename a document and update all references to it