The town of Avon has become the third community in upstate New York to win a court case over the right to ban fracking operations.