Photometry and Spectroscopy of GRB 060526: a detailed study of the afterglow and host galaxy of a z=3.2 gamma-ray burst