refactor vtkHardwareSelector device state management

This patch refactors device dependent OpenGL state
management code used only by the vtkHardwareSelector
out of vtkOpenGLPainterDeviceAdaptor and into the
new vtkOpenGLHardwareSelector class and decorates the
old vtkOpenGLPainterDeviceAdaptor API with VTK_LEGACY.
In vtkOpenGLHardwareSelector added a check for and
load of the GL_ARB_multisample extension before using
it. This fixes failing tests in ParaView with MS GDI
OpenGL 1.1 driver which doesn't support multisampling.

Change-Id: I450802a58d346be801fe0bc74841619cccb17075
Merge topic 'hardware-selector-pv-bug' into master

503d68d2 refactor vtkHardwareSelector device state management