Andy Murray survived a comeback from Grigor Dimitrov to gain revenge for defeat at Wimbledon last year, and make it through to the Australian Open quarter-finals.