Bug #3391 org.opencv.android.NativeCameraView crashes after latest OpenCV Manager update fixed.

The crash was cased by massive Mat objects leak in NativeCameraView class.
Merge pull request #2411 from asmorkalov:android_mat_leak_fix
fixed
Fixed Bug #3568: Build fails with WITH_OPENGL=ON
core tapi optimization
Merge pull request #2412 from arunjvs:master
Merge remote-tracking branch 'origin/2.4' into merge-2.4

Conflicts:
	cmake/OpenCVDetectCUDA.cmake
	doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.rst
	modules/core/CMakeLists.txt
	modules/features2d/perf/opencl/perf_brute_force_matcher.cpp
	modules/highgui/src/grfmt_tiff.cpp
	modules/imgproc/src/clahe.cpp
	modules/imgproc/src/moments.cpp
	modules/nonfree/CMakeLists.txt
	modules/ocl/perf/perf_ml.cpp
	modules/superres/CMakeLists.txt
Merge pull request #2410 from asmorkalov:android_tiff_lowmem_fix
fixed
fixed defects from Xcode
Merge pull request #2358 from rohitgirdhar:rotatedRect
fixed difference between SSE2 and C branches of StereoBM; they should now produce absolutely the same results
Merge pull request #2399 from SpecLad:merge-2.4
CV_Assert for photo module corrected
changed file name to case-sensitve to support linux
Merge pull request #2393 from ilya-lavrenov:coverity
Add tgit.icon project config
Merge pull request #2419 from linquize:tgit.icon
OCL: Fix for Haar classifier (thanks to Konstantin Rodyushkin).
Merge pull request #2415 from vpisarev:fix_stereobm_sse