Whole-Body Planning for Humanoids along Deformable Tasks