Revealing the magnetic field in a distant galaxy cluster: the discovery of the complex radio emission from MACS J0717.5+3745