Jon Gruden has quit his role as head coach of the Las Vegas Raiders after emails containing misogynistic, homophobic and racist language sent during his time as an ESPN analyst emerged.