fixing bug #3345
fixing bug #3345. don't use BORDER_ISOLATED alone. it should be combined with some border type
OpenCV C/C++/OCL/CUDA samples install path fixed. Install rools for tests added.
Code review notes fixed.

Env setup for testing package implemented using /etc/profile.d;
Variable with path for all native samples added;
Path for test binaries and test data updated.
Merge pull request #2209 from asmorkalov:ocv_test_install
Merge branch '2.4' into blur_border_isolated
fixing bug #3345. use norm to make sure two matrices are the same.
fix #3477:

CV_CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING property is not supported
by all VideoCapture backends. Some backends can return 0.0 or -1.0.
Merge pull request #2097 from pclove1:blur_border_isolated
Merge pull request #2205 from jet47:bug-3477-fix
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
opencv_run_all_tests.sh script added to -tests package.
Merge pull request #2221 from asmorkalov:ocv_test_install_custom
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
eliminated possible memory leak
Android toolchain file sync with original project.

Original project: https://github.com/taka-no-me/android-cmake/
Revision: 5db45cfb87fec180b74963d3680dd60d4d8d8c3a
Merge pull request #2229 from ilya-lavrenov:possible_memory_leak
Merge pull request #2224 from SpecLad:obsolete-immediate
Merge pull request #2231 from asmorkalov:android_toolchain_update