fixed tests (call resetDevice, if there was a gpu failure)
fixes for gpu module:

- fixed printCudaDeviceInfo for new CC
- fixed some compilation errors and warnings
- removed unset command from CMake script
- removed unused std imports
optimizations:

- new reduce implementation (with kepler optimizations)
- saturate_cast via asm command
- video SIMD instructions in element operations
- float arithmetics instead of double
- new deviceSupports function
added more types support for gpu separable filters
implemented Luv/Lab <-> RGB conversion
fixed build for CARMA:

- added CMake toolchain file
- added WITH_NVCUVID flag
fixed bugs #1373, #2629, #2719
Improve error reporting of JPEG image encoder

OpenCV issue #2604

After this patch applied an attempt to encode empty images produces exception
saying "Raw image encoder error: Empty JPEG image (DNL not supported)"
added tests for #1373, #2629, #2719; fixed another bug in determinant(Matx<T,n,n>)
Removed obsolete steps from Windows installation tutorial (bug #2550)
Fixed formula of YCrCb to RGB conversion (bug #2725)
applied patch #2611 that also likely fixes #2505
Fixed cheatsheet for loop (bug #2701)
Resolve warning in OpenCV Library project in Eclipse (Bug #2714)

Warning in auto generated code was suppressed by project settings.
Extended python bindings to support scalar values and tuples in place of InputArray (i.e. Mat) - ticket #2658. Added tests for #2611, #2505, #2658
Extended python bindings to support scalar values and tuples in place of InputArray (i.e. Mat) - ticket #2658. Added tests for #2611, #2505, #2658
hopefully fixed handling of 'long' Python type in OpenCV bindings (bug #2193). added the corresponding test
Merge pull request #344 from taka-no-me:improve_jpeg_encoder_errors
Merge pull request #345 from Daniil-Osokin:bugfix_2550
Merge pull request #348 from Daniil-Osokin:bugfix_YCrCb_formula