N-flation: multifield inflationary dynamics and perturbations