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
added tests for #1373, #2629, #2719; fixed another bug in determinant(Matx<T,n,n>)
applied patch #2611 that also likely fixes #2505
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
Check pointers before using them in var init
Fix mem leak and mismatched new/delete
{calib3d} Fix copy-paste error in conditional
Merge pull request #328 from jet47:new-gpu-fixes
Merge pull request #353 from asmaloney:arg_checks
Video IO perf tests guarded.
Merge pull request #351 from vpisarev:python_fixes
Merge pull request #347 from asmorkalov:WITH_FFMPEG_logic