A Maverick Viñales masterclass saw him take the chequered flag first while there was a late scramble for points from the factory Ducatis at COTA