ocl_calcOpticalFlowPyrLK optimizations

1. decrease branch number in CL code by replacing them into weights
2. decrease local mem pressure in reduce operation by using private variables
3. decrease image sampler pressure by caching data into local memory
4. remove unnecessary sync point on the HOST side.
Merge remote-tracking branch 'github/master' into pullreq/140319-PyrLKOpticalFlow

Conflicts:
	modules/video/src/opencl/pyrlk.cl
Fix ifdef for IPP version greater 8.1
Fix for pullrequest comment
fix previous merge error
Add IPP_VERSION_X100 define
Remove defined(HAVE_IPP)
Merge pull request #2582 from vbystricky:ipp_fix
cv::norm -> cvtest::norm in tests

Conflicts:

	modules/core/src/stat.cpp
Merge pull request #2566 from krodyush:pullreq/140319-PyrLKOpticalFlow
Merge pull request #2585 from ilya-lavrenov:norm