Move opengl iterop code to cv::ogl namespace

Fixed issues: #2737 #2848
Reword and merge pull request #625 from jet47/gpu-fixes