Merge pull request #2213 from ilya-lavrenov:tapi_buildPyramid
Multiple fixes for tests deb package build.

Added opencv_testing.sh.in file;
opencv_testing.sh installation guarded by OS check.
Merge pull request #2215 from asmorkalov:ocv_testpack_fix
fixes for defects from code coverity
optimized createHanningWindow
fixed warnings
implemented OpenCL version of cv::accumulate****
fixed
Added result_probabilities parameter to CvNormalBayesClassifier::predict method. Issue #3401
opencv_run_all_tests.sh script added to -tests package.
Merge pull request #2221 from asmorkalov:ocv_test_install_custom
Merge pull request #2214 from cosminBoaca:add_returnDFVal_parallel_predict
Merge pull request #2212 from SpecLad:hog-sample-const-mat
Removed all use of the obsolete IMMEDIATE parameter to configure_file.

It's not documented, and it does nothing unless CMake 2.0 compatibility
is enabled (and it isn't):

https://github.com/Kitware/CMake/blob/v2.6.0/Source/cmConfigureFileCommand.cxx
fix memory management problem
fix unintialized fields
added cv::calcHist to T-API (only for CV_8UC1 with 256 bins)
added performance test
some experiments
async