Added v4l2 support for getting capture property CV_CAP_PROP_POS_MSEC
make the sparse method give correct results on CPU ocl
Add CL_CPU to supportsFeature check
simplify the logic of pyrlk
fix hog on some CPU device running ocl
fix some mismatch on cpu device running OCL
move the "cpu device checking" from supportsFeatures() to queryDeviceInfo()
Fix the problem of device selection on hybrid video systems.
Incompatible hardware detetction added to OpenCV Manager(Feature #2941)
Automatically add CUDA support to a module if it has CUDA sources.

Backport from master.
Feature #2893 Create Java sample without layout.xml implemented.
Backported globbing from master.
Backported RNG_MT19937 from master.
Merge pull request #740 from evil0sheep:2.4
Merge pull request #742 from bitwangyaoyao:2.4_fix
Merge pull request #792 from asmorkalov:manager_incompat_wh
Merge pull request #794 from asmorkalov:android_no_layout
Merge pull request #793 from SpecLad:auto-cuda
In CvBoost, delegated update_weights's implementation to a helper method.

This allows subclasses of CvBoost to override initial weights that
update_weights uses without duplicating its entire implementation.
Merge pull request #799 from SpecLad:boost-initial-weights
Merge pull request #796 from SpecLad:more-backports