Adds rename method to Contents class

I'm wondering if at some point we couldn't store the file id somewhere, as we keep using it. 
Just thought for futurs refactor.