Adds rename method to Contents class

it should be possible to do caching inside the get_id_for_path function.  We probably want to do this only if necessary, since the cache could become stale due to actions from other users.