Extend Rename to support update in PUT repository/name

Thanks @scorphus for help in the patch ;)