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 previous merge error
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
disabled some IPP funcs
cv::warpPerspective and cv::warpAffine
cv::transpose
cv::polarToCart
cv::accumulateWeighted
cv::accumulateSquare && cv::acumulateProduct
cv::sqrt
cv::pow
cv::magnitude
cv::medianBlur
cv::boxFilter
cv::flip
cv::updateMotionHistory
cv::pow (added ippiSqr_32f_C1R for power=2)