added tree revisions and trash, use cms facade