The Repository rename_paper method has been updated. The citekey update and syncronization with citekey in the bibdata should be handled in a sane manner inside the Paper class.