BMesh: correct flag use

Allowed fill to make duplicate faces
BMesh: add assert for correct args to creation functions
BMesh: fill - replace SmallHash with GHash
Fix for BMesh fill using arbitrary face-flipping

Use winding of existing boundary edges.

Filling Suzzane's eyes gave different face winding.
Fix T41523: Mesh triangle fill creates flipped faces

Calculate projection normal using edge-pairs
Fix T41507: Empty prevents image deletion

Also allow assigning `Object.data = None` from Python
Fix incorrect 2d stabilization for masks

Reported by Sebastian Koenig in IRC>
Tests: remove support.run_unittest
Fix T41267: Wrong light distribution with when having objects with motion blur
Cycles: Drop support for CUDA 5.0 Toolkit, only 6.0 and 6.5 (recommended) are supported now.
ColorRamp: HSV CW/CCW were flipped
ColorRamp: Use linear V for HSV/HSL blending

This matches RGB blending black/white for eg.
Fix T41528: Error message on trying to import COLLADA triangle strips is wrong

Thanks to Maarten Gribnau for the patch.
Cleanup: BMesh arg name
Fix T41068: 3D viewport shading - Material or Window vs. Rendered

Checked with Brecht, Cycles indeed expects generated to be in 0..1 space
instead of -1..1 as it is in BI.
Cycles: Fix wrong image update tagging, float vs. byte images
Fix missing tag for detecting changes with bpy.data.node_groups[...].is_updated.
Cycles: DPX is saved in the sRGB space and need to be converted to linear

This at least applies to DPX saved from within blender, which is 1st prio
to support working reliably.
Fix T41541: Cuda renders objects in black with MIS enabled in world setting

Issue introduced in 8d3cc431d7fdcc9f3243cc24dfdcb94124be0993, parameter mismatch.
BGE: fix crash and return boolean on scene.replace()

Scene replacement with invalid scene name was crashing blender,
now it's a no-op.
KS_Scene.replace() to return a boolean to indicate if the scene
is valid and is scheduled for replacement. This allows more
robust game management.