fixed unused function in case of unavailable CUDA
unused function in case of unavailable OpenGL
removed ocl from allmodules list
one more ocl deletion
fix MACRO
implemented OpenCL version of cv::updateMotionHistory
some fixes and improvements in cv::matchTemplate
Merge pull request #2254 from ilya-lavrenov:opengl
Merge pull request #2253 from ilya-lavrenov:cuda
Merge pull request #2255 from ilya-lavrenov:ocl_doc
Merge pull request #2256 from ilya-lavrenov:tapi_matchTempl
Merge pull request #2258 from ilya-lavrenov:tapi_video