Iranian authorities scramble to bring help to thousands of people left homeless by a major quake that killed more than 400 people.