Add sort_by_key for oclMat.
Most codes are ported from AMD's Bolt library.
Four methods are implemented:

SORT_BITONIC,   // only support power-of-2 buffer size
SORT_SELECTION, // cannot sort duplicate keys
SORT_MERGE,
SORT_RADIX      // only support signed int/float keys
Add IPP mean and sum functions
Fix build errors
Some changes in sum and mean functions
Some modifications to sortByKey API.
Add documentation.
Fix doc build error.
Make ts always static.

This allows us to forget about the GTEST_(CREATE|LINKED_AS)_SHARED_LIBRARY
macros and to get rid of the dependency on cvconfig.h.
disabled 64f IPP DFT; added IPP Gaussian filter; added IPP GetRectSubPix; added IPP BilateralFilter (temporarily disabled)
Merge pull request #1231 from SpecLad:static-ts
Merge pull request #1187 from kdrobnyh:mean_and_sum
Merge pull request #1189 from pengx17:2.4_sort_by_key
xls-report.py: separated image width and height for easier analysis.
Merge pull request #1237 from SpecLad:xls-separate-wh
Like mentioned by Andrei Pavlenko after merging pullrequest #1206, a wrong
ReST directive was used. Also fixed some other ReST directives that were
not correct and removed some warnings during buildbot checks.
Merge pull request #1232 from StevenPuttemans:fix_wrong_documentation
polished the patch
Merge pull request #1233 from vpisarev:24_ipp_78
Fix unsequenced modifications (Bug #3179).
Merge pull request #1244 from vkocheganov:bugfix_3179