Novak Djokovic went from frequent on-court meltdowns to the number one tennis player in the world - but how did he do it?