Fixed bug in slices.
First commit of Hannes. Implemented resonator wakes and added n_slices and n_particles methods in bunch.