Jeremy Corbyn: how the rebel became the front-runner