highgui: fix segfault on CvCapture_GStreamer::open

when compiled with GStreamer, open (of a file) segfaults.

Fix was suggested by Bostjan Vesnicer.
Fix equalization formula in equalizeHist function & rewrite in C++

Old implementation did

    lut[i] = 255 * (count(Y <= i)) / (width * height)

which actually shifts uniform histograms.
From now histogram is equalized as

    C = count(Y == min(Y))
    lut[i] = 255 * (count(Y <= i) - C) / (width * height - C)
Add support for multidimentional matrices into the sanity checks
Merge pull request #227 from taka-no-me:sanity_MatND
Merge pull request #225 from pieleric:2.4
TBB version of calcHist
perf tests for calcHist 2-3D case
Workaround for gcc overoptimization compiler bug.
OpenCV Manager selection chapter added to documentation.
Add threaded version of equalizeHist
Merge pull request #226 from taka-no-me/equalizeHist

Fix equalization formula in equalizeHist function & rewrite in C++
Merge pull request #232 from asmorkalov:compiler_bug_workaround
A lot of javadoc warnings duting javadoc build (Bug #2647) issue fixed

Black list of entities, that are not implemented in Java API added to javadoc generator
Merge pull request #202 from Daniil-Osokin:calcHist
Merge pull request #236 from asmorkalov:javadoc_fix
Fix ccache search in Android CMake toolchain.
OpenCV for Android SDK installation improved;

ReadMe.txt for OpenCV Manager added;
share folder excluded from SDK.
Merge pull request #235 from asmorkalov:doc_manager_selection
Merge pull request #237 from asmorkalov:android_make_install_fix
Tutorial-5 sample extended.

Application menu reorganized;
Resolution control added.