After weeks of government and Russian bombardment, rebels agree to gradually withdraw and hand over heavy weapons.